Should not disconnect this way
authorEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 15:49:29 +0000 (16:49 +0100)
committerEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 15:49:29 +0000 (16:49 +0100)
src/clock.vala

index 7cea3acee0c96ad1165a11d151fb393eeb6adcff..55dadd6c2f86cd49634969f5fbcee77e7008780d 100644 (file)
@@ -104,6 +104,7 @@ public class Clock: zavai.Service
 
     private void otimed_reschedule()
     {
+        stderr.printf("ALARM: %p BN %s\n", otimed_alarm, zavai.registry.bus_name);
         if (alarms != null)
         {
             try {
@@ -112,7 +113,7 @@ public class Clock: zavai.Service
                 zavai.log.error("Cannot clear alarms: " + e.message);
             }
             try {
-                otimed_alarm.SetAlarm(zavai.registry.bus_name, alarms.data.deadline);
+                otimed_alarm.SetAlarm(zavai.registry.bus_name, (int)alarms.data.deadline);
             } catch (Error e) {
                 zavai.log.error("Cannot reschedule alarms: " + e.message);
             }