Applied patch [ 864469 ] WaitForAccept(): 100% CPU Usage (NON-GUI application)
(Alex Thuering) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user