From f4cd1c30cd7f50cd779284f8a2808cdcb484ecd5 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 26 Nov 2019 05:00:55 +0000 Subject: [PATCH] Do not remove connection on distrust so that disconnect can be processed correctly --- core/src/main/groovy/com/muwire/core/chat/ChatServer.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/chat/ChatServer.groovy b/core/src/main/groovy/com/muwire/core/chat/ChatServer.groovy index 47997cc6..ce48eddf 100644 --- a/core/src/main/groovy/com/muwire/core/chat/ChatServer.groovy +++ b/core/src/main/groovy/com/muwire/core/chat/ChatServer.groovy @@ -145,7 +145,7 @@ class ChatServer { if (settings.allowUntrusted && e.level == TrustLevel.NEUTRAL) return - ChatConnection connection = connections.remove(e.persona.destination) + ChatConnection connection = connections.get(e.persona.destination) connection?.close() }