exception
parent
371d47063a
commit
d57017535f
|
@ -232,7 +232,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
}
|
||||
|
||||
|
||||
public void processReconnect(ISession session) throws Exception {
|
||||
public void processReconnect(ISession session) {
|
||||
String key = RedisUtil.getInstence().getKey(RedisKey.INDICATION_OFFLINE, Integer.toString(session.getUid()));
|
||||
Type type = new TypeToken<Map<Integer, ISession.IndicationMsg>>(){}.getType();
|
||||
Object indicationInRedis = RedisUtil.getInstence().get(key);
|
||||
|
@ -274,7 +274,12 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
User userInMem = UserManager.getUserInMem(session.getUid());
|
||||
if(userInMem!=null){
|
||||
userInMem.getPlayerInfoManager().setLoginTime(TimeUtils.now());
|
||||
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
||||
try {
|
||||
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
||||
}catch (Exception e){
|
||||
LOGGER.error("the uid={},e={}",session.getUid(),e);
|
||||
}
|
||||
|
||||
}
|
||||
MessageUtil.sendMessageWithoutBack(session,1, MessageTypeProto.MessageType.RECONNECT_RESPONSE_VALUE,null,true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue