bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4f90594ecb074a3608c5729bd9ececfdc40b9e93

commit 4f90594ecb074a3608c5729bd9ececfdc40b9e93
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Thu Oct 24 11:22:17 2019 -0400

    efl/timer: don't attempt instantiating timers until they're finalized
    
    this will fail anyway so don't bother
    
    Reviewed-by: Cedric BAIL <cedric.b...@free.fr>
    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;

-- 


Reply via email to