fix reconnect
parent
5dc42912c1
commit
ff3cd9a3dc
|
@ -158,7 +158,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
dealHeartBeat(session);
|
||||
return;
|
||||
}
|
||||
|
||||
LOGGER.info("request={} commond ={}: " ,packetNetData.getUserId(), MessageTypeProto.MessageType.valueOf(packetNetData.getMsgId()));
|
||||
if (packetNetData.getMsgId()== MessageTypeProto.MessageType.LOGIN_REQUEST_VALUE ||
|
||||
packetNetData.getMsgId()== MessageTypeProto.MessageType.RECONNECT_REQUEST_VALUE){
|
||||
|
||||
|
@ -168,7 +168,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
return;
|
||||
}
|
||||
//处理多设备重登
|
||||
if(dealRepeatLogin(session) == 1){
|
||||
if(dealRepeatLogin(session) == 1 && packetNetData.getMsgId()!= MessageTypeProto.MessageType.RECONNECT_REQUEST_VALUE){
|
||||
return;
|
||||
}
|
||||
//刷新token
|
||||
|
|
Loading…
Reference in New Issue