Merge pull request #3 from github/jg/ignore-eof-terminal

Ignore EOF on terminal close
This commit is contained in:
Jose Garcia 2021-07-28 09:56:07 -04:00 committed by GitHub
commit cd99399290

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