Merge b48fadcc8c3f8309f6fdf94e858ad19305930761 into e816626b9ca4a3090e20c6a7bf1ee60151bf6c88

This commit is contained in:
OpenIM-Robot 2025-06-25 12:46:52 -07:00 committed by GitHub
commit 9598ef9873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -340,6 +340,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 {