Commit 8d7d17dc authored by Christian Kandeler's avatar Christian Kandeler Committed by con

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
parent 7864ddcb
...@@ -108,6 +108,11 @@ void MaemoSshRunner::stop() ...@@ -108,6 +108,11 @@ void MaemoSshRunner::stop()
if (m_state == PostRunCleaning || m_state == StopRequested if (m_state == PostRunCleaning || m_state == StopRequested
|| m_state == Inactive) || m_state == Inactive)
return; return;
if (m_state == Connecting) {
setState(Inactive);
emit remoteProcessFinished(InvalidExitCode);
return;
}
setState(StopRequested); setState(StopRequested);
cleanup(); cleanup();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment