Skip to content
Snippets Groups Projects
Commit a1a34c52 authored by Eric Cano's avatar Eric Cano
Browse files

Removed wrong attempt to unlock in ~MutexLocker()

The unlocking should only be attempted if we still hold the lock (it was unconditional).
parent 8c2df253
No related branches found
No related tags found
No related merge requests found
......@@ -69,10 +69,12 @@ public:
* Destructor.
*/
~MutexLocker() {
try {
m_mutex.unlock();
} catch (...) {
// Ignore any exceptions
if (m_locked) {
try {
m_mutex.unlock();
} catch (...) {
// Ignore any exceptions
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment