Fix broadcast to nodes

This commit is contained in:
Atlante45 2015-07-16 10:50:05 -07:00
parent ae8e79750b
commit bf637f8f18

View file

@ -497,8 +497,8 @@ unsigned int LimitedNodeList::broadcastToNodes(std::unique_ptr<NLPacket> packet,
unsigned int n = 0;
eachNode([&](const SharedNodePointer& node){
if (node->getActiveSocket() && destinationNodeTypes.contains(node->getType())) {
writePacket(*packet, *node->getActiveSocket(), node->getConnectionSecret());
if (node && destinationNodeTypes.contains(node->getType())) {
writePacket(*packet, *node);
++n;
}
});