mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:01:18 +02:00
Merge pull request #2174 from birarda/node-interest
keep known nodes alive when we receive an unprocessed packet from them
This commit is contained in:
commit
f67891d7b5
1 changed files with 5 additions and 0 deletions
|
@ -264,6 +264,11 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
// the node decided not to do anything with this packet
|
||||||
|
// if it comes from a known source we should keep that node alive
|
||||||
|
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
|
||||||
|
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue