mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
Merge pull request #13056 from birarda/bug/local-ID-missed-erase
RC67: add a missing unsafe_erase for local node ID map
This commit is contained in:
commit
30e808e133
1 changed files with 2 additions and 0 deletions
|
@ -302,6 +302,7 @@ bool LimitedNodeList::packetSourceAndHashMatchAndTrackBandwidth(const udt::Packe
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
NLPacket::LocalID sourceLocalID = Node::NULL_LOCAL_ID;
|
NLPacket::LocalID sourceLocalID = Node::NULL_LOCAL_ID;
|
||||||
|
|
||||||
// check if we were passed a sourceNode hint or if we need to look it up
|
// check if we were passed a sourceNode hint or if we need to look it up
|
||||||
if (!sourceNode) {
|
if (!sourceNode) {
|
||||||
// figure out which node this is from
|
// figure out which node this is from
|
||||||
|
@ -608,6 +609,7 @@ bool LimitedNodeList::killNodeWithUUID(const QUuid& nodeUUID, ConnectionID newCo
|
||||||
|
|
||||||
{
|
{
|
||||||
QWriteLocker writeLocker(&_nodeMutex);
|
QWriteLocker writeLocker(&_nodeMutex);
|
||||||
|
_localIDMap.unsafe_erase(matchingNode->getLocalID());
|
||||||
_nodeHash.unsafe_erase(it);
|
_nodeHash.unsafe_erase(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue