mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Change to chat kill user handling (try to fix / workaround for #440).
This commit is contained in:
parent
ba37d70a73
commit
61f1ebeb80
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue