separated User from Session - will be need for reconnecting

This commit is contained in:
BetaSteward 2011-06-27 21:50:35 -04:00
parent b55dd5d787
commit bdd8a2a28e
6 changed files with 46 additions and 29 deletions

View file

@ -131,7 +131,7 @@ public class Main {
public void handleConnectionException(Throwable throwable, Client client) {
Session session = SessionManager.getInstance().getSession(client.getSessionId());
if (session != null) {
String sessionName = session.getUsername() + " at " + session.getHost();
String sessionName = session.getUser().getName() + " at " + session.getHost();
if (throwable instanceof ClientDisconnectedException) {
logger.info("client disconnected - " + sessionName);
}