remove work arounds for nimbuzz.com
This commit is contained in:
parent
97d9cb7dd5
commit
1000d927a7
|
@ -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"
|
||||
);
|
||||
}
|
|
@ -1907,16 +1907,7 @@ public class XmppConnection implements Runnable {
|
|||
}
|
||||
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": starting service discovery");
|
||||
mPendingServiceDiscoveries.set(0);
|
||||
if (!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);
|
||||
}
|
||||
mWaitForDisco.set(waitForDisco);
|
||||
lastDiscoStarted = SystemClock.elapsedRealtime();
|
||||
mXmppConnectionService.scheduleWakeUpCall(
|
||||
Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode());
|
||||
|
|
Loading…
Reference in a new issue