Ignore EOF on terminal close

This commit is contained in:
Jose Garcia 2021-07-28 13:55:33 +00:00 committed by GitHub
parent 4fc27b3ed9
commit ae29c3c1ea

View file

@ -106,7 +106,7 @@ func (t terminalReadCloser) Close() error {
return fmt.Errorf("error making terminal.stopTerminal call: %v", err)
}
if err := t.channel.Close(); err != nil {
if err := t.channel.Close(); err != nil && err != io.EOF {
return fmt.Errorf("error closing channel: %v", err)
}