summaryrefslogtreecommitdiff
path: root/timers.go
diff options
context:
space:
mode:
Diffstat (limited to 'timers.go')
-rw-r--r--timers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/timers.go b/timers.go
index 3a1efa103..f9fe28608 100644
--- a/timers.go
+++ b/timers.go
@@ -12,7 +12,8 @@ func InitTimers() {
switch msg.Payload.(type) {
case *Msg_TimerStart:
payload := msg.GetTimerStart()
- return HandleTimerStart(payload.Id, payload.Interval, payload.Duration)
+ return HandleTimerStart(*payload.Id, *payload.Interval,
+ *payload.Duration)
default:
panic("[timers] Unexpected message " + string(buf))
}
@@ -27,7 +28,7 @@ func HandleTimerStart(id int32, interval bool, duration int32) []byte {
payload, err := proto.Marshal(&Msg{
Payload: &Msg_TimerReady{
TimerReady: &TimerReadyMsg{
- Id: id,
+ Id: &id,
},
},
})