From eaf6f57451231e873a742b46813bba27ea35c2d6 Mon Sep 17 00:00:00 2001 From: liuxiaobo <1224730913@qq.com> Date: Mon, 26 May 2025 19:46:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ws/wsConn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ws/wsConn.go b/ws/wsConn.go index c5854c4..ffa2990 100644 --- a/ws/wsConn.go +++ b/ws/wsConn.go @@ -79,11 +79,11 @@ func (c *wsConnect) Close() { defer c.mutex.Unlock() if c.isClosed == false { c.isClosed = true - wsMgr.Remove(c) - close(c.closeCh) if c.onDisconnect != nil { c.onDisconnect(c) } + wsMgr.Remove(c) + close(c.closeCh) } }