mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
flush_pending_writes must be non-blocking
This commit is contained in:
@@ -63,6 +63,8 @@ func (self *Loop) flush_pending_writes(tty_write_channel chan<- *write_msg) {
|
||||
case tty_write_channel <- self.pending_writes[0]:
|
||||
n := copy(self.pending_writes, self.pending_writes[1:])
|
||||
self.pending_writes = self.pending_writes[:n]
|
||||
default:
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user