diff --git a/timerlist.go b/timerlist.go index 7c66ac2..36c6df1 100644 --- a/timerlist.go +++ b/timerlist.go @@ -19,7 +19,7 @@ type TimerList struct { } // NewTimerList creates a new empty TimerList. -func NewTimerList() *TimerList { return &TimerList{} } +func NewTimerList() *TimerList { return &TimerList{Timers: []*Timer{}} } func (timerlist *TimerList) Size() int { return len(timerlist.Timers) } func (timerlist *TimerList) GetTimerSlice() []*Timer { return timerlist.Timers }