History

Merge branch 'master' of https://github.com/highfidelity/hifi into baseball

Atlante45 committed 11 years ago

Commit 55c67062 parents 35b13b1 7be537c57 files · +1522 −239Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 57 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+4−3
@@ -646,13 +646,14 @@ QScriptValue ScriptEngine::evaluate(const QString& sourceCode, const QString& fi · 645 unmodified lines
646646 }
647647
648648 void ScriptEngine::run() {
649− // TODO: can we add a short circuit for _stoppingAllScripts here? What does it mean to not start running if
650− // we're in the process of stopping?
649+ if (_stoppingAllScripts) {
650+ return; // bail early - avoid setting state in init(), as evaluate() will bail too
651+ }
651652
652653 if (!_isInitialized) {
653654 init();
654655 }
655−
656+
656657 _isRunning = true;
657658 _isFinished = false;
658659 if (_wantSignals) {