mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 23:46:29 +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) {
|
||||
qCDebug(scriptengine) <<
|
||||
"Script " << scriptName << " has been running too long [" << elapsedUsecs << " usecs] quitting.";
|
||||
abortEvaluation(); // to allow the thread to quit
|
||||
workerThread->quit();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue