repairs to early return for sendNackPackets

This commit is contained in:
Stephen Birarda 2015-07-20 16:10:11 -07:00
parent 74193b3dac
commit 9fb8b55359

View file

@ -2693,7 +2693,7 @@ int Application::sendNackPackets() {
// if there are octree packets from this node that are waiting to be processed,
// don't send a NACK since the missing packets may be among those waiting packets.
if (_octreeProcessor.hasPacketsToProcessFrom(nodeUUID)) {
packetsSent = 0;
return;
}
_octreeSceneStatsLock.lockForRead();
@ -2701,7 +2701,7 @@ int Application::sendNackPackets() {
// retreive octree scene stats of this node
if (_octreeServerSceneStats.find(nodeUUID) == _octreeServerSceneStats.end()) {
_octreeSceneStatsLock.unlock();
packetsSent = 0;
return;
}
// get sequence number stats of node, prune its missing set, and make a copy of the missing set