mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 23:33:26 +02:00
unregister the AvatarHashMap packet registrations
This commit is contained in:
parent
040c7557da
commit
e7249594e1
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ void Agent::run() {
|
|||
|
||||
void Agent::aboutToFinish() {
|
||||
_scriptEngine.stop();
|
||||
|
||||
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
||||
packetReceiver.unregisterListener(DependencyManager::get<AvatarHashMap>().data());
|
||||
|
||||
// our entity tree is going to go away so tell that to the EntityScriptingInterface
|
||||
DependencyManager::get<EntityScriptingInterface>()->setEntityTree(NULL);
|
||||
|
|
Loading…
Reference in a new issue