don't restart script engine on shutting down with nodeKilled

This commit is contained in:
Stephen Birarda 2017-01-20 10:59:46 -08:00
parent d8a6a8775d
commit 9c485dc610

View file

@ -296,7 +296,7 @@ void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const
}
void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) {
if (killedNode->getType() == NodeType::EntityServer) {
if (!_shuttingDown && killedNode->getType() == NodeType::EntityServer) {
if (_entitiesScriptEngine) {
_entitiesScriptEngine->unloadAllEntityScripts();
_entitiesScriptEngine->stop();