flush_pending_writes must be non-blocking
This commit is contained in:
parent
a388a658ce
commit
5cc5759f3e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue