From 832b1edc8f97df2bfcf18d1f339fadd1c38d648b Mon Sep 17 00:00:00 2001 From: lwch Date: Thu, 4 Nov 2021 10:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E5=A4=84=E7=90=86=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=96=AD=E5=BC=80=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/client/tunnel/vnc/h_ws.go | 1 + 1 file changed, 1 insertion(+) 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())