Skip to content

Commit 0b27c98

Browse files
committed
fixup! fix close
1 parent 885a2f1 commit 0b27c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/exp_rpty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ func handleRPTY(inv *serpent.Invocation, client *codersdk.Client, args handleRPT
208208
<-stdoutDone
209209
<-stderrDone
210210
_ = conn.Close()
211+
_, _ = fmt.Fprintf(inv.Stderr, "Connection closed\n")
211212
}()
212213

213214
<-done
214-
_, _ = fmt.Fprintf(inv.Stderr, "Connection closed\n")
215215

216216
return nil
217217
}

0 commit comments

Comments
 (0)