mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
more CR feedback removed redundant abort code
This commit is contained in:
parent
00838d1e1e
commit
6026e055aa
1 changed files with 2 additions and 1 deletions
|
@ -221,7 +221,8 @@ void ScriptEngine::waitTillDoneRunning() {
|
|||
auto elapsed = stillWaiting - startedWaiting;
|
||||
|
||||
// if we've been waiting a second or more, then tell the script engine to stop evaluating
|
||||
if (elapsed > USECS_PER_SECOND) {
|
||||
static const auto MAX_SCRIPT_EVALUATION_TIME = USECS_PER_SECOND;
|
||||
if (elapsed > MAX_SCRIPT_EVALUATION_TIME) {
|
||||
qCDebug(scriptengine) << "Script " << scriptName << " has been running too long [" << elapsed << "] aborting evaluation.";
|
||||
threadSafeAbortEvaluation();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue