From ea859786da64797941d5eab16bc12ed4ebb3ae9b Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 2 Nov 2023 15:09:47 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_statistics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/websocket/internal/logic/ws_statistics.go b/server/websocket/internal/logic/ws_statistics.go index 50320398..241fa653 100644 --- a/server/websocket/internal/logic/ws_statistics.go +++ b/server/websocket/internal/logic/ws_statistics.go @@ -230,11 +230,11 @@ func ConsumeWebsocketStatData() { continue } stat.CurWsConnectCount += data.Num - //没有连接就删除 - if stat.CurWsConnectCount <= 0 { + //没有连接就删除(先不删除) + /*if stat.CurWsConnectCount <= 0 { mapUserWsStat.Delete(key) continue - } + }*/ //保存统计 mapUserWsStat.Store(key, stat) case TYPE_CUR_COMBINE_IMAGE_COUNT: //请求算法合图计数