forked from External/mage
* User handling - Fixed a recently added bug and added some debug messages.
This commit is contained in:
parent
83c3f92241
commit
6c8b818d89
2 changed files with 7 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ public class UserManager {
|
|||
.append(" sessionId: ").append(user.getSessionId())
|
||||
.append(" Reason: ").append(reason.toString()));
|
||||
ChatManager.getInstance().removeUser(userId, reason);
|
||||
users.get(userId).kill(reason);
|
||||
user.kill(reason);
|
||||
users.remove(userId);
|
||||
} else {
|
||||
logger.warn(new StringBuilder("Trying to remove userId: ").append(userId).append(" but user does not exist."));
|
||||
|
|
@ -165,7 +165,7 @@ public class UserManager {
|
|||
if (user.isExpired(expired.getTime())) {
|
||||
logger.info(new StringBuilder(user.getName()).append(": session expired userId: ").append(user.getId())
|
||||
.append(" Host: ").append(user.getHost()));
|
||||
SessionManager.getInstance().getSession(user.getSessionId()).kill(DisconnectReason.SessionExpired);
|
||||
removeUser(user.getId(), DisconnectReason.SessionExpired);
|
||||
}
|
||||
}
|
||||
logger.debug("checkExpired - end");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue