mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 07:34:02 +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();
|
||||
|
||||
QWriteLocker writeLocker(&_nodeMutex);
|
||||
_nodeMutex.lockForWrite();
|
||||
_nodeHash.unsafe_erase(it);
|
||||
_nodeMutex.unlock();
|
||||
|
||||
handleNodeKill(matchingNode);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue