Skip to content

Commit 524b630

Browse files
committed
Fixup tty exit closure
1 parent 35950ad commit 524b630

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ func Serve(ctx context.Context, c *websocket.Conn, execer Execer) error {
7979

8080
go func() {
8181
defer wsNetConn.Close()
82-
err := outputgroup.Wait()
83-
if err != nil {
84-
// connection should close without an exit code if copy fails
85-
return
86-
}
82+
_ = outputgroup.Wait()
8783
err = process.Wait()
8884
if exitErr, ok := err.(*ExitError); ok {
8985
sendExitCode(ctx, exitErr.Code, wsNetConn)

0 commit comments

Comments
 (0)