mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-09-20 22:59:32 +02:00
[sinttest] Disconnect unrecycleable connections
This commit is contained in:
parent
2900cc2274
commit
dd4cd8cede
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue