mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -557,10 +557,7 @@ func (self *Loop) run() (err error) {
|
|||||||
}
|
}
|
||||||
var timeout time.Duration
|
var timeout time.Duration
|
||||||
if len(self.timers) > 0 {
|
if len(self.timers) > 0 {
|
||||||
timeout = self.timers[0].deadline.Sub(now)
|
timeout = max(0, self.timers[0].deadline.Sub(now))
|
||||||
if timeout < 0 {
|
|
||||||
timeout = 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
timeout_chan = time.After(timeout)
|
timeout_chan = time.After(timeout)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user