TerminalProcess: Fix stopping the terminal

Fixes 30 seconds freeze when stopping the terminal
during debugging (when being interrupted on some
breakpoint).

Fixes also the freeze on closing the preferences
dialog after opening the remote shell via
"Open Remote Shell" and keeping it open.

Fixes: QTCREATORBUG-28365
Change-Id: I15dfd9cba02d03e0ba65878c5285ea8cc96d8aad
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2022-10-19 13:50:23 +02:00
parent c9f39972cd
commit 9d8106e54a
2 changed files with 18 additions and 18 deletions

View File

@@ -193,11 +193,8 @@ void TerminalRunner::start()
void TerminalRunner::stop()
{
if (m_stubProc && m_stubProc->isRunning()) {
if (m_stubProc && m_stubProc->isRunning())
m_stubProc->stop();
m_stubProc->waitForFinished();
}
reportStopped();
}
void TerminalRunner::stubStarted()