mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
EntityScriptServer should wait for script engine to finish when stopping
Script engine will still running and using EntityEditPacketSender, which is owned by EntityScriptServer, which was destroyed. https://highfidelity.manuscript.com/f/cases/11071/
This commit is contained in:
parent
db2b79f4fb
commit
d67044f220
1 changed files with 1 additions and 0 deletions
|
@ -476,6 +476,7 @@ void EntityScriptServer::clear() {
|
||||||
// do this here (instead of in deleter) to avoid marshalling unload signals back to this thread
|
// do this here (instead of in deleter) to avoid marshalling unload signals back to this thread
|
||||||
_entitiesScriptEngine->unloadAllEntityScripts();
|
_entitiesScriptEngine->unloadAllEntityScripts();
|
||||||
_entitiesScriptEngine->stop();
|
_entitiesScriptEngine->stop();
|
||||||
|
_entitiesScriptEngine->waitTillDoneRunning();
|
||||||
}
|
}
|
||||||
|
|
||||||
_entityViewer.clear();
|
_entityViewer.clear();
|
||||||
|
|
Loading…
Reference in a new issue