History

don't restart script engine on shutting down with nodeKilled

Stephen Birarda committed 9 years ago

Commit 9c485dc1 parent d8a6a871 file · +1 −1Browse files

Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all

Unified · Split

assignment-client/src/scripts/EntityScriptServer.cpp+1−1
@@ -296,7 +296,7 @@ void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const · 295 unmodified lines
296296 }
297297
298298 void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) {
299− if (killedNode->getType() == NodeType::EntityServer) {
299+ if (!_shuttingDown && killedNode->getType() == NodeType::EntityServer) {
300300 if (_entitiesScriptEngine) {
301301 _entitiesScriptEngine->unloadAllEntityScripts();
302302 _entitiesScriptEngine->stop();