Bug fixes

This commit is contained in:
Atlante45 2015-07-15 15:26:22 -07:00
parent ebeeee62bf
commit 85391cefbb
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -147,7 +147,7 @@ void Packet::setPayloadSize(qint64 payloadSize) {
bool Packet::reset() {
if (isWritable()) {
setPayloadSize(0);
_payloadSize = 0;
}
return QIODevice::reset();