fix: Close bug in pty (#3166)

This commit is contained in:
Mathias Fredriksson 2022-07-25 16:31:30 +03:00 committed by GitHub
parent 592340c6ce
commit 2c67a2f30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ func (p *otherPty) Close() error {
err := p.pty.Close()
if err != nil {
_ = p.tty.Close()
return err
}