flush_pending_writes must be non-blocking

This commit is contained in:
Kovid Goyal 2022-08-31 15:25:30 +05:30
parent a388a658ce
commit 5cc5759f3e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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
}
}
}