code clean up
This commit is contained in:
parent
796405a214
commit
acef5dbd3b
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue