mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-25 12:42:12 +08:00
add log when oldclient token is same to newClient token is ture.
This commit is contained in:
parent
bef997e1aa
commit
797cc84be7
@ -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.
|
// 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.
|
// This situation needs to be filtered to prevent duplicate clients.
|
||||||
if c.token == newClient.token {
|
if c.token == newClient.token {
|
||||||
|
log.ZDebug(newClient.ctx, "token is same, not kick", "userID", newClient.UserID, "platformID", newClient.PlatformID, "token", newClient.token)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
kickTokens = append(kickTokens, c.token)
|
kickTokens = append(kickTokens, c.token)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user