Cosmetic whitespace, use return value of wait() directly instead of testing timer
This commit is contained in:
parent
0d310a8464
commit
1fde0f3e71
|
@ -286,11 +286,10 @@ Client::leave()
|
||||||
Stopwatch timer(true);
|
Stopwatch timer(true);
|
||||||
m_mutex->lock();
|
m_mutex->lock();
|
||||||
while (!m_condData) {
|
while (!m_condData) {
|
||||||
m_condVar->wait(timer, 0.5);
|
if (!m_condVar->wait(timer, 0.5)) {
|
||||||
if (timer.getTime()>0.5) {
|
LOG((CLOG_DEBUG "timed out waiting for clipboard fill"));
|
||||||
LOG((CLOG_DEBUG "timed out waiting for clipboard fill"));
|
break;
|
||||||
break;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
m_mutex->unlock();
|
m_mutex->unlock();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue