From 797cc84be7a33abf85f0eaba808a1ece16c63796 Mon Sep 17 00:00:00 2001 From: Ergou <1578701237@qq.com> Date: Fri, 10 Oct 2025 15:57:25 +0800 Subject: [PATCH] add log when oldclient token is same to newClient token is ture. --- internal/msggateway/ws_server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/msggateway/ws_server.go b/internal/msggateway/ws_server.go index f8399627e..08a4193dd 100644 --- a/internal/msggateway/ws_server.go +++ b/internal/msggateway/ws_server.go @@ -323,6 +323,7 @@ func (ws *WsServer) multiTerminalLoginChecker(clientOK bool, oldClients []*Clien // During this process, instance A might still be executing, resulting in two clients with the same token existing simultaneously. // This situation needs to be filtered to prevent duplicate clients. if c.token == newClient.token { + log.ZDebug(newClient.ctx, "token is same, not kick", "userID", newClient.UserID, "platformID", newClient.PlatformID, "token", newClient.token) continue } kickTokens = append(kickTokens, c.token)