don't wait for disco when not having stream managment
This commit is contained in:
parent
61f58b3dbd
commit
401759cdc7
|
@ -1072,7 +1072,7 @@ public class XmppConnection implements Runnable {
|
||||||
this.disco.clear();
|
this.disco.clear();
|
||||||
}
|
}
|
||||||
mPendingServiceDiscoveries.set(0);
|
mPendingServiceDiscoveries.set(0);
|
||||||
mWaitForDisco.set(mServerIdentity != Identity.NIMBUZZ);
|
mWaitForDisco.set(mServerIdentity != Identity.NIMBUZZ && smVersion != 0);
|
||||||
lastDiscoStarted = SystemClock.elapsedRealtime();
|
lastDiscoStarted = SystemClock.elapsedRealtime();
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": starting service discovery");
|
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": starting service discovery");
|
||||||
mXmppConnectionService.scheduleWakeUpCall(Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode());
|
mXmppConnectionService.scheduleWakeUpCall(Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode());
|
||||||
|
|
Loading…
Reference in a new issue