forked from enlightenment/efl
efl/timer: don't attempt instantiating timers until they're finalized
this will fail anyway so don't bother Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10514
This commit is contained in:
parent
1faf6ef2b7
commit
4f90594ecb
|
@ -82,6 +82,7 @@ _check_timer_event_catcher_add(void *data, const Efl_Event *event)
|
||||||
if (array[i].desc == EFL_LOOP_TIMER_EVENT_TIMER_TICK)
|
if (array[i].desc == EFL_LOOP_TIMER_EVENT_TIMER_TICK)
|
||||||
{
|
{
|
||||||
if (timer->listening++ > 0) return;
|
if (timer->listening++ > 0) return;
|
||||||
|
if (timer->finalized)
|
||||||
_efl_loop_timer_util_instanciate(timer->loop_data, timer);
|
_efl_loop_timer_util_instanciate(timer->loop_data, timer);
|
||||||
// No need to walk more than once per array as you can not del
|
// No need to walk more than once per array as you can not del
|
||||||
// a partial array
|
// a partial array
|
||||||
|
|
Loading…
Reference in New Issue