mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-13 03:27:36 +02:00
Only say we're throwing a script error when we mean it
This commit is contained in:
parent
67a06b3a74
commit
437f6b4096
1 changed files with 2 additions and 2 deletions
|
@ -423,9 +423,9 @@ void ScriptEngine::waitTillDoneRunning() {
|
|||
qCWarning(scriptengine) << "Script Engine has been running too long, aborting:" << getFilename();
|
||||
abortEvaluation();
|
||||
} else {
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename();
|
||||
auto context = currentContext();
|
||||
if (context) {
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename();
|
||||
context->throwError("Timed out during shutdown");
|
||||
}
|
||||
}
|
||||
|
@ -450,9 +450,9 @@ void ScriptEngine::waitTillDoneRunning() {
|
|||
qCWarning(scriptengine) << "Script Engine has been running too long, aborting:" << getFilename();
|
||||
abortEvaluation();
|
||||
} else {
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename();
|
||||
auto context = currentContext();
|
||||
if (context) {
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename();
|
||||
context->throwError("Timed out during shutdown");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue