fix: timeout when waiting for CancelReader

Fixes #524.
This commit is contained in:
Christian Muehlhaeuser
2022-10-11 09:26:34 +02:00
parent b9bd01b79a
commit 8703897aad
2 changed files with 1 additions and 7 deletions

5
tty.go
View File

@@ -79,11 +79,6 @@ func (p *Program) readLoop() {
}
}
// cancelInput cancels the input reader.
func (p *Program) cancelInput() {
p.cancelReader.Cancel()
}
// waitForReadLoop waits for the cancelReader to finish its read loop.
func (p *Program) waitForReadLoop() {
select {