mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Merge pull request #4558 from birarda/master
fix deadlock opportunity in killNodeWithUUID
This commit is contained in:
commit
90498969e2
1 changed files with 2 additions and 1 deletions
|
@ -392,8 +392,9 @@ void LimitedNodeList::killNodeWithUUID(const QUuid& nodeUUID) {
|
||||||
|
|
||||||
_nodeMutex.unlock();
|
_nodeMutex.unlock();
|
||||||
|
|
||||||
QWriteLocker writeLocker(&_nodeMutex);
|
_nodeMutex.lockForWrite();
|
||||||
_nodeHash.unsafe_erase(it);
|
_nodeHash.unsafe_erase(it);
|
||||||
|
_nodeMutex.unlock();
|
||||||
|
|
||||||
handleNodeKill(matchingNode);
|
handleNodeKill(matchingNode);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue