Merge branch 'protocol' of https://github.com/Atlante45/hifi into atp

This commit is contained in:
Stephen Birarda 2015-07-09 11:53:27 -07:00
commit 8e693bfee7

View file

@ -280,14 +280,15 @@ int OctreeInboundPacketProcessor::sendNackPackets() {
++it; ++it;
} }
packetsSent = nackPacketList.getNumPackets();
if (packetsSent) { if (nackPacketList.getNumPackets()) {
qDebug() << "NACK Sent back to editor/client... destinationNode=" << nodeUUID; 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; return packetsSent;