More changes to user and session handling. Fixes somes issues with client reconnect and connecting other instance.

This commit is contained in:
LevelX2 2014-08-29 01:46:53 +02:00
parent 180bae323d
commit df04bf829d
5 changed files with 47 additions and 17 deletions

View file

@ -213,7 +213,11 @@ public class Main {
SessionManager.getInstance().disconnect(client.getSessionId(), DisconnectReason.LostConnection);
logger.info("CONNECTION LOST - " + sessionInfo, throwable);
if (logger.isDebugEnabled()) {
throwable.printStackTrace();
if (throwable == null) {
logger.debug("Lease expired");
} else {
throwable.printStackTrace();
}
}
}
}