From b5d2d4e7cbd190824d63056421a03a6c432f791f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 1 Jul 2021 22:20:59 +0200 Subject: fix tor fallback check for failing api calls --- .../se/leap/bitmaskclient/providersetup/ProviderApiManager.java | 8 ++++---- 1 file 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); } -- cgit v1.2.3