mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
don't unlock double lock outside conditional
This commit is contained in:
parent
54cd430be9
commit
9575b47e4e
1 changed files with 4 additions and 4 deletions
|
@ -402,10 +402,10 @@ void SendQueue::run() {
|
|||
// skip to the next iteration
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// we got the try_lock but failed the other conditionals so we need to unlock
|
||||
doubleLock.unlock();
|
||||
} else {
|
||||
// we got the try_lock but failed the other conditionals so we need to unlock
|
||||
doubleLock.unlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue