git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33719
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxAppConsole::ProcessPendingEvents()
{
+ if ( !wxPendingEventsLocker )
+ return;
+
// ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
wxASSERT_MSG( wxThread::IsMain(),
wxT("only main thread may call wxMutexGuiLeaveOrEnter()!") );
+ if( !gs_critsectWaitingForGui )
+ return;
+
wxCriticalSectionLocker enter(*gs_critsectWaitingForGui);
if ( gs_nWaitingForGui == 0 )