diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2012-06-08 10:25:17 +0000 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2012-06-08 10:25:17 +0000 |
commit | 98b7a46e8b8b025e12d45d7fa9dd72a1a59977fb (patch) | |
tree | 8b1cd40c4d2844e5aef862684a7d911b7986edcc /src | |
parent | 575bb23dfb7c39e15374594096966973d05c75cd (diff) | |
download | enlightenment-98b7a46e8b8b025e12d45d7fa9dd72a1a59977fb.tar.gz |
fix magic check when timer doesn't exist
SVN revision: 71843
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; } |