From b27a7fb7cc0179ca4aac34cc49f62c939963a2a0 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 10 Mar 2025 15:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=86=85=E5=AD=98=E6=B3=84?= =?UTF-8?q?=E9=9C=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handler/tool.go b/handler/tool.go index 3c938ad..27d6a49 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -209,6 +209,7 @@ func subscribeAndHandleMessagesV6(ws *websocket.Conn, deviceId int) { worker.SetRedisSetRemove(online_conn_key, con_id) break } + buf = nil c = count } else { //每秒发送一次心跳检测