forked from qt-creator/qt-creator
Maemo: Fix possible crash on stopping a run control.
The crash happens when the run control is stopped before a connection has been established. Task-number: QTCREATORBUG-3374 Reviewed-by: Tobias Hunger
This commit is contained in:
@@ -108,6 +108,11 @@ void MaemoSshRunner::stop()
|
||||
if (m_state == PostRunCleaning || m_state == StopRequested
|
||||
|| m_state == Inactive)
|
||||
return;
|
||||
if (m_state == Connecting) {
|
||||
setState(Inactive);
|
||||
emit remoteProcessFinished(InvalidExitCode);
|
||||
return;
|
||||
}
|
||||
|
||||
setState(StopRequested);
|
||||
cleanup();
|
||||
|
||||
Reference in New Issue
Block a user