mirror of
https://github.com/coder/coder.git
synced 2025-07-10 23:53:15 +00:00
fix: Close bug in pty (#3166)
This commit is contained in:
committed by
GitHub
parent
592340c6ce
commit
2c67a2f30b
@ -56,6 +56,7 @@ func (p *otherPty) Close() error {
|
|||||||
|
|
||||||
err := p.pty.Close()
|
err := p.pty.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
_ = p.tty.Close()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user