code clean up

This commit is contained in:
Daniel Gultsch 2023-11-20 19:28:58 +01:00
parent 796405a214
commit acef5dbd3b
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -1414,7 +1414,8 @@ public class XmppConnection implements Runnable {
private void authenticate() throws IOException {
final boolean isSecure = isSecure();
if (isSecure && this.streamFeatures.hasChild("authentication", Namespace.SASL_2)) {authenticate(SaslMechanism.Version.SASL_2);
if (isSecure && this.streamFeatures.hasChild("authentication", Namespace.SASL_2)) {
authenticate(SaslMechanism.Version.SASL_2);
} else if (isSecure && this.streamFeatures.hasChild("mechanisms", Namespace.SASL)) {
authenticate(SaslMechanism.Version.SASL);
} else {