Finer grained
authorEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 15:12:43 +0000 (16:12 +0100)
committerEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 15:12:43 +0000 (16:12 +0100)
src/clock.vala

index ec4b6267a79787b2aaccf2ea678e09a4fc262a98..93e5edc6ea5820fc2131cc491d394233d8e54d54 100644 (file)
@@ -106,6 +106,10 @@ public class Clock: zavai.Service
         {
             try {
                 otimed_alarm.ClearAlarm(zavai.registry.bus_name);
+            } catch (Error e) {
+                zavai.log.error("Cannot clear alarms: " + e.message);
+            }
+            try {
                 otimed_alarm.SetAlarm(zavai.registry.bus_name, alarms.data.deadline);
             } catch (Error e) {
                 zavai.log.error("Cannot reschedule alarms: " + e.message);