|
|
@ -225,12 +225,7 @@ func (ws *WsServer) registerClient(client *Client) {
|
|
|
|
ws.onlineUserNum.Add(1)
|
|
|
|
ws.onlineUserNum.Add(1)
|
|
|
|
ws.onlineUserConnNum.Add(1)
|
|
|
|
ws.onlineUserConnNum.Add(1)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
i := &kickHandler{
|
|
|
|
ws.multiTerminalLoginChecker(clientOK, oldClients, client)
|
|
|
|
clientOK: clientOK,
|
|
|
|
|
|
|
|
oldClients: oldClients,
|
|
|
|
|
|
|
|
newClient: client,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ws.kickHandlerChan <- i
|
|
|
|
|
|
|
|
log.ZDebug(client.ctx, "user exist", "userID", client.UserID, "platformID", client.PlatformID)
|
|
|
|
log.ZDebug(client.ctx, "user exist", "userID", client.UserID, "platformID", client.PlatformID)
|
|
|
|
if clientOK {
|
|
|
|
if clientOK {
|
|
|
|
ws.clients.Set(client.UserID, client)
|
|
|
|
ws.clients.Set(client.UserID, client)
|
|
|
|