mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +02:00
Abort infinite JS loops on quit
This commit is contained in:
parent
284feaf5d4
commit
56ec0e5db0
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ void ScriptEngine::waitTillDoneRunning() {
|
||||||
if (elapsedUsecs > MAX_SCRIPT_EVALUATION_TIME) {
|
if (elapsedUsecs > MAX_SCRIPT_EVALUATION_TIME) {
|
||||||
qCDebug(scriptengine) <<
|
qCDebug(scriptengine) <<
|
||||||
"Script " << scriptName << " has been running too long [" << elapsedUsecs << " usecs] quitting.";
|
"Script " << scriptName << " has been running too long [" << elapsedUsecs << " usecs] quitting.";
|
||||||
|
abortEvaluation(); // to allow the thread to quit
|
||||||
workerThread->quit();
|
workerThread->quit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue