Change to chat kill user handling (try to fix / workaround for #440).

This commit is contained in:
LevelX2 2014-08-02 16:06:28 +02:00
parent ba37d70a73
commit 61f1ebeb80

View file

@ -65,14 +65,14 @@ public class ChatSession {
}
}
synchronized public void kill(UUID userId, DisconnectReason reason) {
public void kill(UUID userId, DisconnectReason reason) {
try {
if (userId != null && clients.containsKey(userId)) {
clients.remove(userId);
logger.debug("ChatSession.kill chatSession: " + chatId + " userId: " + userId + " reason: " + (reason == null?"null":reason.toString())
+ " clients.size " + clients.size());
String userName = clients.get(userId);
clients.remove(userId);
String userName = clients.get(userId);
String message = null;
switch (reason) {
case Disconnected: