Fix timer that does not fire at next loop tick being discarded

This commit is contained in:
Kovid Goyal 2023-07-24 11:54:02 +05:30
parent 906b5fdcb7
commit 2baff2fccc
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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)]