Merge 79a775ea631935c346308358d0d5398b350aa354 into fac3a5b1d889f84512fb9a9d61f03a4571ddc053

This commit is contained in:
OpenIM-Robot 2025-03-29 20:07:57 -07:00 committed by GitHub
commit 9d05078fa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -353,6 +353,15 @@ func (ws *WsServer) multiTerminalLoginChecker(clientOK bool, oldClients []*Clien
if constant.PlatformIDToClass(newClient.PlatformID) == constant.TerminalPC {
return
}
clients, ok := ws.clients.GetAll(newClient.UserID)
clientOK = ok
oldClients = make([]*Client, 0, len(clients))
for _, c := range clients {
if constant.PlatformIDToClass(c.PlatformID) == constant.TerminalPC {
continue
}
oldClients = append(oldClients, c)
}
fallthrough
case constant.AllLoginButSameTermKick:
if !clientOK {