PATCH: [ 1033006 ] Fix: socket s timeout of < 1s doesnt work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -923,7 +923,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);
|
||||
|
Reference in New Issue
Block a user