diff --git a/src/libs/utils/process.cpp b/src/libs/utils/process.cpp index 7dc27f908ec..90bc0c4045d 100644 --- a/src/libs/utils/process.cpp +++ b/src/libs/utils/process.cpp @@ -1876,6 +1876,8 @@ void Process::runBlocking(EventLoopMode eventLoopMode) if (d->m_timeoutInSeconds > 0) { timeoutHandler = [this, &eventLoop, &timeoutHandler] { if (!d->m_timeOutMessageBoxEnabled || askToKill(d->m_setup.m_commandLine)) { + if (state() == QProcess::NotRunning) + return; stop(); waitForFinished(); d->m_result = ProcessResult::Hang;