From: Kevin Hock Date: Thu, 30 Mar 2006 15:29:22 +0000 (+0000) Subject: Fix GetTraits() check for event loop in wxSocketBase::_Wait() [ bug 1460607 ] [ patch... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3c57bda5451d31315de797a285b9547693143316?ds=sidebyside Fix GetTraits() check for event loop in wxSocketBase::_Wait() [ bug 1460607 ] [ patch by Angel / elkry ] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 8e87adb874..65fb93a2b3 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -693,7 +693,7 @@ bool wxSocketBase::_Wait(long seconds, else timeout = m_timeout * 1000; - bool has_event_loop = wxTheApp ? (wxTheApp->GetTraits() ? true : false) : false; + bool has_event_loop = wxTheApp->GetTraits() ? (wxTheApp->GetTraits()->GetSocketGUIFunctionsTable() ? true : false) : false; // Wait in an active polling loop. //