forked from External/mage
separated User from Session - will be need for reconnecting
This commit is contained in:
parent
b55dd5d787
commit
bdd8a2a28e
6 changed files with 46 additions and 29 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue