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
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user