Fix timer that does not fire at next loop tick being discarded
This commit is contained in:
parent
906b5fdcb7
commit
2baff2fccc
1 changed files with 2 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ func (self *Loop) dispatch_timers(now time.Time) error {
|
|||
t.update_deadline(now)
|
||||
self.timers_temp = append(self.timers_temp, t)
|
||||
}
|
||||
} else {
|
||||
self.timers_temp = append(self.timers_temp, t)
|
||||
}
|
||||
}
|
||||
self.timers = self.timers[:len(self.timers_temp)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue