mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-13 00:21:10 +08:00
Merge 12f694fb5dfae6cdbdefdeb7508f707eccdb1ae3 into 4b3a2b74839b2230ff5626ebb20c9689fb8a8d1f
This commit is contained in:
commit
066f5e8ddc
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user