Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -216,6 +216,7 @@ void ScriptEngine::waitTillDoneRunning() { · 215 unmodified lines | ||
| 216 | 216 | if (elapsedUsecs > MAX_SCRIPT_EVALUATION_TIME) { |
| 217 | 217 | qCDebug(scriptengine) << |
| 218 | 218 | "Script " << scriptName << " has been running too long [" << elapsedUsecs << " usecs] quitting."; |
| 219 | + abortEvaluation(); // to allow the thread to quit | |
| 219 | 220 | workerThread->quit(); |
| 220 | 221 | break; |
| 221 | 222 | } |