mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +02:00
don't restart script engine on shutting down with nodeKilled
This commit is contained in:
parent
d8a6a8775d
commit
9c485dc610
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue