ecore: Only check timers if we need to
authormike_m <mike_m@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Jul 2011 11:56:36 +0000 (11:56 +0000)
committermike_m <mike_m@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Jul 2011 11:56:36 +0000 (11:56 +0000)
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61282 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_main.c

index b291ac8..00f70a2 100644 (file)
@@ -600,6 +600,8 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
    else
      ecore_fds_ready = (_ecore_main_fdh_glib_mark_active() > 0);
    _ecore_main_fd_handlers_cleanup();
+   if (ecore_fds_ready)
+     ret = TRUE;
 
    /* check timers after updating loop time */
    _ecore_time_loop_time = ecore_time_get();
@@ -610,7 +612,7 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
 
    in_main_loop--;
 
-   return ret || ecore_fds_ready;
+   return ret;
 }
 
 /* like we just came out of main_loop_select in  _ecore_main_select */