mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:17:40 +02:00
guard around update to last heard for a NULL matching node
This commit is contained in:
parent
a7f0e41232
commit
7ba595338e
1 changed files with 3 additions and 1 deletions
|
@ -267,7 +267,9 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
|
||||||
// the node decided not to do anything with this packet
|
// the node decided not to do anything with this packet
|
||||||
// if it comes from a known source we should keep that node alive
|
// if it comes from a known source we should keep that node alive
|
||||||
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
|
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
|
||||||
|
if (matchingNode) {
|
||||||
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
|
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue