diff --git a/Net/src/SocketReactor.cpp b/Net/src/SocketReactor.cpp index fb43589d1..f2421e6b2 100644 --- a/Net/src/SocketReactor.cpp +++ b/Net/src/SocketReactor.cpp @@ -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)) {