Do not remove connection on distrust so that disconnect can be processed correctly

This commit is contained in:
Zlatin Balevsky
2019-11-26 05:00:55 +00:00
parent 6b717f560e
commit f4cd1c30cd

View File

@@ -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()
}