]> git.saurik.com Git - wxWidgets.git/commitdiff
slight adaption, shorter max wait
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 13 Jun 2013 00:19:10 +0000 (00:19 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 13 Jun 2013 00:19:10 +0000 (00:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/core/evtloop_cf.cpp

index 19b10e49116492876d520c5ea14bb82f93981100..9eefc0d22bf1da8d19c9f59401f93924ed930b0b 100644 (file)
@@ -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()