X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f565c05e6b8103894a5e0efac315dbd20bc5de33..4566d7db6fc8adaecc8c5d5245a6b876c114496a:/src/unix/gsocket.cpp diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 488b28e62b..f857c3c176 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -254,6 +254,7 @@ GSocket::GSocket() m_stream = true; m_gui_dependent = NULL; m_non_blocking = false; + m_reusable = false; m_timeout = 10*60*1000; /* 10 minutes * 60 sec * 1000 millisec */ m_establishing = false; @@ -923,7 +924,7 @@ GSocketEventFlags GSocket::Select(GSocketEventFlags flags) /* Do not use a static struct, Linux can garble it */ tv.tv_sec = m_timeout / 1000; - tv.tv_usec = (m_timeout % 1000) / 1000; + tv.tv_usec = (m_timeout % 1000) * 1000; FD_ZERO(&readfds); FD_ZERO(&writefds);