fixed issue 247

This commit is contained in:
BetaSteward 2011-09-12 21:20:18 -04:00
parent 2c8f9ce688
commit 798eb7813b
2 changed files with 2 additions and 1 deletions

View file

@ -88,7 +88,7 @@ public class ChatManager {
}
}
void removeUser(UUID userId) {
public void removeUser(UUID userId) {
for (ChatSession chat: chatSessions.values()) {
chat.kill(userId);
}

View file

@ -100,6 +100,7 @@ public class UserManager {
}
public void disconnect(UUID userId) {
ChatManager.getInstance().removeUser(userId);
if (users.containsKey(userId)) {
logger.info("user disconnected " + userId);
users.get(userId).setSessionId("");