From: Stefan Csomor Date: Thu, 13 Jun 2013 00:19:10 +0000 (+0000) Subject: slight adaption, shorter max wait X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/57fe8307ab37fdcac6285add24e60e35ca07b1a1 slight adaption, shorter max wait git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/evtloop_cf.cpp b/src/osx/core/evtloop_cf.cpp index 19b10e4911..9eefc0d22b 100644 --- a/src/osx/core/evtloop_cf.cpp +++ b/src/osx/core/evtloop_cf.cpp @@ -304,11 +304,13 @@ int wxCFEventLoop::DoProcessEvents() { if ( m_shouldWaitForEvent ) { - int handled = DispatchTimeout( 10000 ); + int handled = DispatchTimeout( 1000 ); wxASSERT_MSG( handled == 1, "No Event Available"); m_shouldWaitForEvent = false; + return handled; } - return DispatchTimeout( 0 ); + else + return DispatchTimeout( 0 ); } bool wxCFEventLoop::Dispatch()