mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-12 16:13:29 +08:00
Merge b48fadcc8c3f8309f6fdf94e858ad19305930761 into bc4057f5e13c8cf7d449d71ae13e12c17cf2ccfd
This commit is contained in:
commit
dc346b00d3
@ -340,6 +340,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