summaryrefslogtreecommitdiff
path: root/app/src/production
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-07-01 22:20:59 +0200
committercyBerta <cyberta@riseup.net>2021-07-21 22:02:24 +0200
commitb5d2d4e7cbd190824d63056421a03a6c432f791f (patch)
treeac022728df57d45bb6ce8f61e25e39ef13ba5a8f /app/src/production
parent466408cc641d0635e61e0ec26a4178c1ebdcedc5 (diff)
fix tor fallback check for failing api calls
Diffstat (limited to 'app/src/production')
-rw-r--r--app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
index b6069982..fc1f0f59 100644
--- a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
+++ b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
@@ -330,8 +330,8 @@ public class ProviderApiManager extends ProviderApiManagerBase {
responseString.contains(ERRORS) &&
PreferenceHelper.useTor(preferences) &&
EipStatus.getInstance().isDisconnected() &&
- TorStatusObservable.getStatus() == OFF ||
- TorStatusObservable.getStatus() == UNKOWN) {
+ (TorStatusObservable.getStatus() == OFF ||
+ TorStatusObservable.getStatus() == UNKOWN)) {
TorStatusObservable.setProxyPort(startTorProxy());
return downloadWithCommercialCA(stringUrl, provider, 1);
}
@@ -371,8 +371,8 @@ public class ProviderApiManager extends ProviderApiManagerBase {
responseString.contains(ERRORS) &&
PreferenceHelper.useTor(preferences) &&
EipStatus.getInstance().isDisconnected() &&
- TorStatusObservable.getStatus() == OFF ||
- TorStatusObservable.getStatus() == UNKOWN) {
+ (TorStatusObservable.getStatus() == OFF ||
+ TorStatusObservable.getStatus() == UNKOWN)) {
TorStatusObservable.setProxyPort(startTorProxy());
return downloadFromUrlWithProviderCA(urlString, provider, 1);
}