mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +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)
|
t.update_deadline(now)
|
||||||
self.timers_temp = append(self.timers_temp, t)
|
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)]
|
self.timers = self.timers[:len(self.timers_temp)]
|
||||||
|
|||||||
Reference in New Issue
Block a user