diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/clock/e_mod_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/clock/e_mod_main.c b/src/modules/clock/e_mod_main.c index cd4b5b16e1..64aae196f5 100644 --- a/src/modules/clock/e_mod_main.c +++ b/src/modules/clock/e_mod_main.c @@ -479,7 +479,8 @@ _update_today_timer(void *data __UNUSED__) today.tm_hour = 0; t_tomorrow = mktime(&today) + 24 * 60 * 60; - ecore_timer_interval_set(update_today, t_tomorrow - t); + if (update_today) ecore_timer_interval_set(update_today, t_tomorrow - t); + else update_today = ecore_timer_add(t_tomorrow - t, _update_today_timer, NULL); return EINA_TRUE; } |