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 0db8567554..7f670986ac 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 @@ -187,14 +187,14 @@ public static boolean removeConnectionDescriptor(String nickname) { case inBandRegistration: accountRegistrationConnection = defaultConnectionDescriptor.construct(sinttestConfiguration); accountRegistrationConnection.connect(); - accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername, - sinttestConfiguration.adminAccountPassword); if (sinttestConfiguration.accountRegistration == AccountRegistration.inBandRegistration) { adminManager = null; accountManager = AccountManager.getInstance(accountRegistrationConnection); } else { + accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername, + sinttestConfiguration.adminAccountPassword); adminManager = ServiceAdministrationManager.getInstanceFor(accountRegistrationConnection); accountManager = null; }