properly handle removing subscribers from channels when the subscriber node disconnects

This commit is contained in:
Brad Hefta-Gaub 2015-11-17 14:19:13 -08:00
parent 8112b3b57e
commit 6dfcc53c27

View file

@ -37,7 +37,9 @@ MessagesMixer::~MessagesMixer() {
}
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) {