From 7ea6d08907b62437cb03e0c14737de7226b8db10 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Mon, 18 Jul 2016 18:55:07 +0200 Subject: [PATCH] fixed GH #1316: Empty SocketReactor never sleeps --- Net/src/SocketReactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {