simplify expressions

pull/5/head
heck 2021-02-16 21:10:36 +01:00
parent 64b6857bd2
commit 49c124c3db
1 changed files with 2 additions and 2 deletions

View File

@ -23,11 +23,11 @@ namespace pEp {
void try_wait()
{
std::unique_lock<std::mutex> lock(mtx);
if (_stop.load() == false) {
if (!_stop.load()) {
return;
}
while(_stop.load() == true) {
while(_stop.load()) {
cv.wait(lock);
}
}