ProjectExplorer: If a worker fails while we're stopping, continue

We don't need to re-initiate the stopping.

Change-Id: I2c19dca854c93e0340227d08a381c3bde919363d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2017-08-09 13:44:00 +02:00
parent 8507f6ae55
commit a62f882c42

View File

@@ -919,7 +919,10 @@ void RunControlPrivate::onWorkerFailed(RunWorker *worker, const QString &msg)
worker->d->state = RunWorkerState::Done;
showError(msg);
initiateStop();
if (state == RunControlState::Running || state == RunControlState::Starting)
initiateStop();
else
continueStopOrFinish();
}
void RunControlPrivate::onWorkerStopped(RunWorker *worker)