mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 01:23:17 +02:00
fix eachNode lambda in Application
This commit is contained in:
parent
86a218ad20
commit
658ad6bd02
1 changed files with 3 additions and 3 deletions
|
@ -2664,7 +2664,7 @@ int Application::sendNackPackets() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// iterates thru all nodes in NodeList
|
// iterates through all nodes in NodeList
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
|
|
||||||
int packetsSent = 0;
|
int packetsSent = 0;
|
||||||
|
@ -2680,7 +2680,7 @@ int Application::sendNackPackets() {
|
||||||
// if there are octree packets from this node that are waiting to be processed,
|
// 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.
|
// don't send a NACK since the missing packets may be among those waiting packets.
|
||||||
if (_octreeProcessor.hasPacketsToProcessFrom(nodeUUID)) {
|
if (_octreeProcessor.hasPacketsToProcessFrom(nodeUUID)) {
|
||||||
return 0;
|
packetsSent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_octreeSceneStatsLock.lockForRead();
|
_octreeSceneStatsLock.lockForRead();
|
||||||
|
@ -2688,7 +2688,7 @@ int Application::sendNackPackets() {
|
||||||
// retreive octree scene stats of this node
|
// retreive octree scene stats of this node
|
||||||
if (_octreeServerSceneStats.find(nodeUUID) == _octreeServerSceneStats.end()) {
|
if (_octreeServerSceneStats.find(nodeUUID) == _octreeServerSceneStats.end()) {
|
||||||
_octreeSceneStatsLock.unlock();
|
_octreeSceneStatsLock.unlock();
|
||||||
return 0;
|
packetsSent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get sequence number stats of node, prune its missing set, and make a copy of the missing set
|
// get sequence number stats of node, prune its missing set, and make a copy of the missing set
|
||||||
|
|
Loading…
Reference in a new issue