forked from enlightenment/efl
ecore: reset during timer callback execution doesn't make sense.
@fix T3222
This commit is contained in:
parent
08ea619ed0
commit
4f2af24755
|
@ -300,6 +300,9 @@ _efl_loop_timer_reset(Eo *obj EINA_UNUSED, Efl_Loop_Timer_Data *timer)
|
|||
double now, add;
|
||||
EINA_MAIN_LOOP_CHECK_RETURN;
|
||||
|
||||
// Do not reset the current timer while inside the callback
|
||||
if (timer_current == timer) return ;
|
||||
|
||||
now = ecore_time_get();
|
||||
|
||||
if (!timer->initialized)
|
||||
|
@ -321,6 +324,9 @@ _efl_loop_timer_loop_reset(Eo *obj EINA_UNUSED, Efl_Loop_Timer_Data *timer)
|
|||
double now, add;
|
||||
EINA_MAIN_LOOP_CHECK_RETURN;
|
||||
|
||||
// Do not reset the current timer while inside the callback
|
||||
if (timer_current == timer) return ;
|
||||
|
||||
now = ecore_loop_time_get();
|
||||
|
||||
if (!timer->initialized)
|
||||
|
|
Loading…
Reference in New Issue