Call setFinished() if script engine hasn't started up

This commit is contained in:
Simon Walton 2018-07-31 18:10:49 -07:00
parent 5a92032bdd
commit 6f61642cb0

View file

@ -857,5 +857,7 @@ void Agent::aboutToFinish() {
void Agent::stop() { void Agent::stop() {
if (_scriptEngine) { if (_scriptEngine) {
_scriptEngine->stop(); _scriptEngine->stop();
} else {
setFinished(true);
} }
} }