From 90e64920c7c41dfdb5055704dcc3ed85acb87dfc Mon Sep 17 00:00:00 2001 From: lijun Date: Mon, 20 Jan 2025 18:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8v3=E8=8E=B7=E5=8F=96=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handler/tool.go b/handler/tool.go index 52ba04f..7522064 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -242,6 +242,10 @@ func subscribeAndHandleMessagesV3(ws *websocket.Conn, device_id int) { break } c = count + err5 := img.Close() + if err5 != nil { + log.Printf("img close err:%v", err) + } } } else { //每秒发送一次心跳检测