diff --git a/code/client/tunnel/vnc/h_ws.go b/code/client/tunnel/vnc/h_ws.go index eee03f2..02dac1e 100644 --- a/code/client/tunnel/vnc/h_ws.go +++ b/code/client/tunnel/vnc/h_ws.go @@ -36,6 +36,7 @@ func (v *VNC) WS(pool *pool.Pool, w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusInternalServerError) return } + defer local.Close() ch := conn.ChanRead(id) defer conn.SendDisconnect(v.link.target, v.link.targetIdx, v.link.id) ctx, cancel := context.WithCancel(context.Background())