MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onPipeError

Method onPipeError

app/src/IO/Drivers/Process.cpp:548–557  ·  view source on GitHub ↗

* @brief Called on the main thread when pipeReadLoop() fails to open the pipe. */

Source from the content-addressed store, hash-verified

546 * @brief Called on the main thread when pipeReadLoop() fails to open the pipe.
547 */
548void IO::Drivers::Process::onPipeError()
549{
550 Misc::Utilities::showMessageBox(
551 tr("Pipe Error"), tr("Could not open named pipe: %1").arg(m_pipePath), QMessageBox::Warning);
552
553 QMetaObject::invokeMethod(
554 &IO::ConnectionManager::instance(),
555 [this] { IO::ConnectionManager::instance().disconnectDevice(this); },
556 Qt::QueuedConnection);
557}
558
559//--------------------------------------------------------------------------------------------------
560// Private: pipe read loop (runs on m_pipeThread)

Callers

nothing calls this directly

Calls 1

disconnectDeviceMethod · 0.80

Tested by

no test coverage detected