From 1fde0f3e7183c1aa263d71c90ba3ece244885c0b Mon Sep 17 00:00:00 2001 From: Nye Liu Date: Thu, 3 Sep 2015 12:23:42 -0700 Subject: [PATCH] Cosmetic whitespace, use return value of wait() directly instead of testing timer --- src/lib/client/Client.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/client/Client.cpp b/src/lib/client/Client.cpp index ac8191ae..41b1df24 100644 --- a/src/lib/client/Client.cpp +++ b/src/lib/client/Client.cpp @@ -286,11 +286,10 @@ Client::leave() Stopwatch timer(true); m_mutex->lock(); while (!m_condData) { - m_condVar->wait(timer, 0.5); - if (timer.getTime()>0.5) { - LOG((CLOG_DEBUG "timed out waiting for clipboard fill")); - break; - } + if (!m_condVar->wait(timer, 0.5)) { + LOG((CLOG_DEBUG "timed out waiting for clipboard fill")); + break; + } } m_mutex->unlock();