mirror of
https://github.com/overte-org/overte.git
synced 2025-06-15 19:39:16 +02:00
remove dead listeners from set of directly connected objects
This commit is contained in:
parent
1c98c5e02c
commit
08bd2adb51
1 changed files with 5 additions and 0 deletions
|
@ -359,6 +359,11 @@ void PacketReceiver::processDatagrams() {
|
|||
<< " (" << qPrintable(nameForPacketType(packet->getType())) << ")"
|
||||
<< " has been destroyed. Removing from listener map.";
|
||||
it = _packetListenerMap.erase(it);
|
||||
|
||||
// if it exists, remove the listener from _directlyConnectedObjects
|
||||
_directConnectSetMutex.lock();
|
||||
_directlyConnectedObjects.remove(listener.first);
|
||||
_directConnectSetMutex.unlock();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue