From dd4cd8cede84d8d0bbb9ce6ee8091b8885ea273c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 31 May 2020 21:01:32 +0200 Subject: [PATCH] [sinttest] Disconnect unrecycleable connections --- .../org/igniterealtime/smack/inttest/XmppConnectionManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java index 207ab1c02..204562fd4 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java @@ -480,6 +480,8 @@ public class XmppConnectionManager { synchronized (connectionPool) { connectionPool.put(connectionClass, connection); } + } else { + connection.disconnect(); } // Note that we do not delete the account of the unauthenticated connection here, as it is done at the end of // the test run together with all other dynamically created accounts.