fix: don't close cached tailnet on pty close (#8917)

This commit is contained in:
Colin Adler
2023-08-04 17:54:27 -05:00
committed by GitHub
parent 0c7ff4fb8a
commit eddaa7781d

View File

@ -669,7 +669,6 @@ func (s *Server) workspaceAgentPTY(rw http.ResponseWriter, r *http.Request) {
return
}
defer release()
defer agentConn.Close()
log.Debug(ctx, "dialed workspace agent")
ptNetConn, err := agentConn.ReconnectingPTY(ctx, reconnect, uint16(height), uint16(width), r.URL.Query().Get("command"))
if err != nil {