fixed GH #1316: Empty SocketReactor never sleeps

This commit is contained in:
Guenter Obiltschnig 2016-07-18 18:55:07 +02:00
parent dc1f0bfe53
commit 7ea6d08907

View File

@ -104,7 +104,7 @@ void SocketReactor::run()
if (nSockets == 0)
{
onIdle();
Thread::trySleep(_timeout.milliseconds());
Thread::trySleep(_timeout.totalMilliseconds());
}
else if (Socket::select(readable, writable, except, _timeout))
{