Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -296,7 +296,7 @@ void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const · 295 unmodified lines | |||
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) { | 298 | void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) { |
| 299 | if (killedNode->getType() == NodeType::EntityServer) { | 299 | if (!_shuttingDown && killedNode->getType() == NodeType::EntityServer) { |
| 300 | if (_entitiesScriptEngine) { | 300 | if (_entitiesScriptEngine) { |
| 301 | _entitiesScriptEngine->unloadAllEntityScripts(); | 301 | _entitiesScriptEngine->unloadAllEntityScripts(); |
| 302 | _entitiesScriptEngine->stop(); | 302 | _entitiesScriptEngine->stop(); |