From 4f90594ecb074a3608c5729bd9ececfdc40b9e93 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 24 Oct 2019 11:22:17 -0400 Subject: [PATCH] efl/timer: don't attempt instantiating timers until they're finalized this will fail anyway so don't bother Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D10514 --- 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 96b1a13a51..ed6d7c340d 100644 --- a/src/lib/ecore/ecore_timer.c +++ b/src/lib/ecore/ecore_timer.c @@ -82,7 +82,8 @@ _check_timer_event_catcher_add(void *data, const Efl_Event *event) if (array[i].desc == EFL_LOOP_TIMER_EVENT_TIMER_TICK) { if (timer->listening++ > 0) return; - _efl_loop_timer_util_instanciate(timer->loop_data, timer); + if (timer->finalized) + _efl_loop_timer_util_instanciate(timer->loop_data, timer); // No need to walk more than once per array as you can not del // a partial array return;