mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-11 18:32:12 +02:00
Fix timer that does not fire at next loop tick being discarded
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user