mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
fixed GH #1316: Empty SocketReactor never sleeps
This commit is contained in:
parent
dc1f0bfe53
commit
7ea6d08907
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user