remove work arounds for nimbuzz.com

This commit is contained in:
Daniel Gultsch 2023-01-01 12:20:10 +01:00
parent 97d9cb7dd5
commit 1000d927a7
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2
2 changed files with 1 additions and 21 deletions

View file

@ -1,11 +0,0 @@
package eu.siacs.conversations.xmpp;
import java.util.Arrays;
import java.util.List;
public class Patches {
public static final List<String> DISCO_EXCEPTIONS = Arrays.asList(
"nimbuzz.com"
);
}

View file

@ -1907,16 +1907,7 @@ public class XmppConnection implements Runnable {
} }
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": starting service discovery"); Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": starting service discovery");
mPendingServiceDiscoveries.set(0); mPendingServiceDiscoveries.set(0);
if (!waitForDisco mWaitForDisco.set(waitForDisco);
|| Patches.DISCO_EXCEPTIONS.contains(
account.getJid().getDomain().toEscapedString())) {
Log.d(
Config.LOGTAG,
account.getJid().asBareJid() + ": do not wait for service discovery");
mWaitForDisco.set(false);
} else {
mWaitForDisco.set(true);
}
lastDiscoStarted = SystemClock.elapsedRealtime(); lastDiscoStarted = SystemClock.elapsedRealtime();
mXmppConnectionService.scheduleWakeUpCall( mXmppConnectionService.scheduleWakeUpCall(
Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode()); Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode());