]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
oops, more fixes needed
[wxWidgets.git] / src / common / socket.cpp
index 3706c62893274dda7eeae6c674d28fad06257e05..6e40e90f9132f80f44ecf2834cbfcd8267f813e9 100644 (file)
@@ -678,6 +678,10 @@ bool wxSocketBase::_Wait(long seconds,
   else
     timeout = m_timeout * 1000;
 
+#if !defined(wxUSE_GUI) || !wxUSE_GUI
+  GSocket_SetTimeout(m_socket, timeout);
+#endif 
+
   // Wait in an active polling loop.
   //
   // NOTE: We duplicate some of the code in OnRequest, but this doesn't