diff --git a/Semaphore.hh b/Semaphore.hh index 400e081..0643372 100644 --- a/Semaphore.hh +++ b/Semaphore.hh @@ -23,11 +23,11 @@ namespace pEp { void try_wait() { std::unique_lock lock(mtx); - if (_stop.load() == false) { + if (!_stop.load()) { return; } - while(_stop.load() == true) { + while(_stop.load()) { cv.wait(lock); } }