Merge branch 'openimsdk:main' into notificationUpdate

This commit is contained in:
Brabem 2024-01-03 16:23:15 +08:00 committed by GitHub
commit 173e43d7db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,11 +345,7 @@ func (ws *WsServer) multiTerminalLoginChecker(clientOK bool, oldClients []*Clien
if !clientOK {
return
}
isDeleteUser := ws.clients.deleteClients(newClient.UserID, oldClients)
if isDeleteUser {
ws.onlineUserNum.Add(-1)
}
ws.clients.deleteClients(newClient.UserID, oldClients)
for _, c := range oldClients {
err := c.KickOnlineMessage()
if err != nil {