fix reconnect

wangyuan 2019-11-02 19:04:21 +08:00
parent 5dc42912c1
commit ff3cd9a3dc
1 changed files with 2 additions and 2 deletions

View File

@ -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