mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 11:42:55 +02:00
properly handle removing subscribers from channels when the subscriber node disconnects
This commit is contained in:
parent
8112b3b57e
commit
6dfcc53c27
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ MessagesMixer::~MessagesMixer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesMixer::nodeKilled(SharedNodePointer killedNode) {
|
void MessagesMixer::nodeKilled(SharedNodePointer killedNode) {
|
||||||
// FIXME - remove the node from the subscription maps
|
for (auto& channel : _channelSubscribers) {
|
||||||
|
channel.remove(killedNode->getUUID());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesMixer::handleMessages(QSharedPointer<NLPacketList> packetList, SharedNodePointer senderNode) {
|
void MessagesMixer::handleMessages(QSharedPointer<NLPacketList> packetList, SharedNodePointer senderNode) {
|
||||||
|
|
Loading…
Reference in a new issue