1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Sleep 10ms in IPC wait loop, not 10 SECONDS!

Fixes #2334
This commit is contained in:
tux3 2015-10-08 19:53:44 +02:00
parent 42659aefe8
commit 59e0692069

View File

@ -188,7 +188,7 @@ bool IPC::waitUntilAccepted(time_t postTime, int32_t timeout/*=-1*/)
while (!(result = isEventAccepted(postTime))) while (!(result = isEventAccepted(postTime)))
{ {
qApp->processEvents(); qApp->processEvents();
QThread::sleep(10); QThread::msleep(10);
if (timeout > 0 && difftime(time(0), start) >= timeout) if (timeout > 0 && difftime(time(0), start) >= timeout)
break; break;
} }