From 2a4725b5d96080a315587e259a758fcbc2670914 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 30 Jan 2018 16:16:06 +0300 Subject: xmpp: fix logoff cleanup --- juick-xmpp/src/main/java/com/juick/components/XMPPServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-xmpp/src/main/java/com/juick/components') diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java index c57ed58e..6206914b 100644 --- a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java +++ b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java @@ -146,7 +146,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { } outConnections.forEach((c, s) -> { c.logoff(); - outConnections.remove(s); + outConnections.remove(c); }); inConnections.forEach(c -> { c.closeConnection(); -- cgit v1.2.3