History

fix ScriptEngine cleanup for Agent

Stephen Birarda committed 11 years ago

Commit 5a2d59c1 parent 3d02cfc3 files · +8 −3Browse files

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

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−1
@@ -721,7 +721,8 @@ void ScriptEngine::run() { · 720 unmodified lines
721721 }
722722
723723 // If we were on a thread, then wait till it's done
724− if (thread()) {
724+ // Unless we're an assignment-client, in which case that's handled for us
725+ if (thread() && !_isAgent) {
725726 thread()->quit();
726727 }
727728