mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-29 17:52:44 +00:00
fixed GH #1316: Empty SocketReactor never sleeps
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user