remove unnecessary resume call

This commit is contained in:
Daniel Gultsch 2024-02-07 09:15:36 +01:00
parent 961a024aa2
commit 7455e99761
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -1453,6 +1453,8 @@ public class XmppConnection implements Runnable {
&& isSecure) {
authenticate(SaslMechanism.Version.SASL);
} else if (this.streamFeatures.hasChild("sm", Namespace.STREAM_MANAGEMENT)
&& isSecure
&& loginInfo != null
&& streamId != null
&& !inSmacksSession) {
if (Config.EXTENDED_SM_LOGGING) {
@ -1467,7 +1469,9 @@ public class XmppConnection implements Runnable {
this.mWaitingForSmCatchup.set(true);
this.tagWriter.writeStanzaAsync(resume);
} else if (needsBinding) {
if (this.streamFeatures.hasChild("bind", Namespace.BIND) && isSecure) {
if (this.streamFeatures.hasChild("bind", Namespace.BIND)
&& isSecure
&& loginInfo != null) {
sendBindRequest();
} else {
Log.d(
@ -1478,7 +1482,6 @@ public class XmppConnection implements Runnable {
throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER);
}
} else {
Log.d(
Config.LOGTAG,
account.getJid().asBareJid()