don't unlock double lock outside conditional

This commit is contained in:
Stephen Birarda 2015-08-28 10:38:15 -07:00
parent 54cd430be9
commit 9575b47e4e

View file

@ -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();
}
}
}
}