mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
...
This commit is contained in:
parent
8d3b3f527c
commit
ecb9c46b95
1 changed files with 1 additions and 4 deletions
|
|
@ -557,10 +557,7 @@ func (self *Loop) run() (err error) {
|
|||
}
|
||||
var timeout time.Duration
|
||||
if len(self.timers) > 0 {
|
||||
timeout = self.timers[0].deadline.Sub(now)
|
||||
if timeout < 0 {
|
||||
timeout = 0
|
||||
}
|
||||
timeout = max(0, self.timers[0].deadline.Sub(now))
|
||||
}
|
||||
timeout_chan = time.After(timeout)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue