cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=10ee8bc844db4d0210139a821cce25fc0f5e12a6

commit 10ee8bc844db4d0210139a821cce25fc0f5e12a6
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Fri Jun 3 16:55:56 2016 -0700

    ecore: do not generate error while rescheduling the last timer.
---
 src/lib/ecore/ecore_timer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_timer.c b/src/lib/ecore/ecore_timer.c
index 39cba76..89f9616 100644
--- a/src/lib/ecore/ecore_timer.c
+++ b/src/lib/ecore/ecore_timer.c
@@ -561,7 +561,8 @@ _efl_loop_timer_reschedule(Efl_Loop_Timer_Data *timer,
 {
    if (timer->frozen) return;
 
-   timers = eina_inlist_remove(timers, EINA_INLIST_GET(timer));
+   if (timers)
+     timers = eina_inlist_remove(timers, EINA_INLIST_GET(timer));
 
    /* if the timer would have gone off more than 15 seconds ago,
     * assume that the system hung and set the timer to go off

-- 


Reply via email to