mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
Fix sendNackPackets logic
This commit is contained in:
parent
2d810e06dc
commit
94d2fce1dd
1 changed files with 6 additions and 5 deletions
|
@ -280,15 +280,16 @@ 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
|
// send the list of nack packets
|
||||||
nodeList->sendPacketList(nackPacketList, destinationNode);
|
nodeList->sendPacketList(nackPacketList, destinationNode);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return packetsSent;
|
return packetsSent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue