mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-25 09:15:39 +08:00
Merge 79a775ea631935c346308358d0d5398b350aa354 into c29e2a9a28c982621465f37b95219cd34a35d940
This commit is contained in:
commit
f60a987a70
@ -353,6 +353,15 @@ func (ws *WsServer) multiTerminalLoginChecker(clientOK bool, oldClients []*Clien
|
|||||||
if constant.PlatformIDToClass(newClient.PlatformID) == constant.TerminalPC {
|
if constant.PlatformIDToClass(newClient.PlatformID) == constant.TerminalPC {
|
||||||
return
|
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
|
fallthrough
|
||||||
case constant.AllLoginButSameTermKick:
|
case constant.AllLoginButSameTermKick:
|
||||||
if !clientOK {
|
if !clientOK {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user