Fix sendNackPackets logic

This commit is contained in:
Atlante45 2015-07-09 11:52:57 -07:00
parent 2d810e06dc
commit 94d2fce1dd

View file

@ -280,14 +280,15 @@ int OctreeInboundPacketProcessor::sendNackPackets() {
++it;
}
packetsSent = nackPacketList.getNumPackets();
if (packetsSent) {
if (nackPacketList.getNumPackets()) {
qDebug() << "NACK Sent back to editor/client... destinationNode=" << nodeUUID;
packetsSent += nackPacketList.getNumPackets();
// send the list of nack packets
nodeList->sendPacketList(nackPacketList, destinationNode);
}
// send the list of nack packets
nodeList->sendPacketList(nackPacketList, destinationNode);
}
return packetsSent;