mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +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)
|
if (nSockets == 0)
|
||||||
{
|
{
|
||||||
onIdle();
|
onIdle();
|
||||||
Thread::trySleep(_timeout.milliseconds());
|
Thread::trySleep(_timeout.totalMilliseconds());
|
||||||
}
|
}
|
||||||
else if (Socket::select(readable, writable, except, _timeout))
|
else if (Socket::select(readable, writable, except, _timeout))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user