Internet connection is not available on build servers, making tests fail #1365

This commit is contained in:
Alex Fabijanic
2017-10-06 18:19:20 -05:00
parent 9b3cb9fc41
commit 4325a5db12
2 changed files with 8 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ void SocketReactor::run()
if (nSockets == 0)
{
onIdle();
Thread::trySleep(_timeout.totalMilliseconds());
Thread::trySleep(static_cast<long>(_timeout.totalMilliseconds()));
}
else if (Socket::select(readable, writable, except, _timeout))
{