mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
Fix bug in OctreeInboundPacketProcessor where node can be null
This commit is contained in:
parent
e2e086ef55
commit
f1babb7fa0
1 changed files with 6 additions and 0 deletions
|
@ -261,6 +261,12 @@ int OctreeInboundPacketProcessor::sendNackPackets() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const SharedNodePointer& destinationNode = DependencyManager::get<NodeList>()->nodeWithUUID(nodeUUID);
|
const SharedNodePointer& destinationNode = DependencyManager::get<NodeList>()->nodeWithUUID(nodeUUID);
|
||||||
|
// If the node no longer exists, wait until the ReceivedPacketProcessor has cleaned up the node
|
||||||
|
// to remove it from our stats list.
|
||||||
|
// FIXME Is it safe to clean it up here before ReceivedPacketProcess has?
|
||||||
|
if (!destinationNode) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// retrieve sequence number stats of node, prune its missing set
|
// retrieve sequence number stats of node, prune its missing set
|
||||||
SequenceNumberStats& sequenceNumberStats = nodeStats.getIncomingEditSequenceNumberStats();
|
SequenceNumberStats& sequenceNumberStats = nodeStats.getIncomingEditSequenceNumberStats();
|
||||||
|
|
Loading…
Reference in a new issue