Commit b8d69b37 authored by Kai Koehne's avatar Kai Koehne

QmlCppEngine: Call quitDebugger already in InferiorShutdownRequested

Doing it in (CppEngine) EngineShutdownOk will result in a write to
an already closed socket.

Change-Id: Ie9712f33d57348ecb27e31eaeb44f42f159a400c
Reviewed-by: default avatarAurindam Jana <aurindam.jana@nokia.com>
parent d0f8fdb2
......@@ -684,6 +684,7 @@ void QmlCppEngine::slaveEngineStateChanged
|| state() == InferiorStopOk, qDebug() << state());
if (state() == InferiorStopOk)
setState(InferiorShutdownRequested);
qmlEngine()->quitDebugger();
break;
}
case InferiorShutdownFailed: {
......@@ -703,7 +704,6 @@ void QmlCppEngine::slaveEngineStateChanged
case EngineShutdownRequested: {
// set by queueShutdownEngine()
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
qmlEngine()->quitDebugger();
break;
}
case EngineShutdownFailed: {
......@@ -741,11 +741,12 @@ void QmlCppEngine::slaveEngineStateChanged
}
QTC_ASSERT(state() == InferiorRunOk
|| state() == InferiorStopRequested, qDebug() << state());
|| state() == InferiorStopRequested
|| state() == InferiorShutdownRequested, qDebug() << state());
if (state() == InferiorRunOk)
notifyInferiorSpontaneousStop();
else
else if (state() == InferiorStopRequested)
notifyInferiorStopOk();
}
......
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