diff --git a/Semaphore.hh b/Semaphore.hh index a7328bb..67a2fa8 100644 --- a/Semaphore.hh +++ b/Semaphore.hh @@ -4,7 +4,7 @@ namespace pEp { class Semaphore { public: - Semaphore() : _stop(false) {} + Semaphore() : _stop(false) { } void stop() { @@ -18,9 +18,8 @@ namespace pEp { if (!_stop) return; - while(_stop){ + while(_stop) cv.wait(lock); - } } void go()