1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

[sinttest] Disconnect unrecycleable connections

This commit is contained in:
Florian Schmaus 2020-05-31 21:01:32 +02:00
parent 2900cc2274
commit dd4cd8cede

View file

@ -480,6 +480,8 @@ public class XmppConnectionManager {
synchronized (connectionPool) { synchronized (connectionPool) {
connectionPool.put(connectionClass, connection); 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 // 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. // the test run together with all other dynamically created accounts.