diff options
author | cyBerta <cyberta@riseup.net> | 2022-05-19 13:21:23 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-05-19 13:21:23 +0200 |
commit | e7395b411c9e50067c59dcadfc8d922855bef96d (patch) | |
tree | 276c65096fccd7a19a90f3c449f4dd12f6fceb57 /app/src/production | |
parent | fccac14d1164a9e70cc76738e21a438999eb883a (diff) |
use better check if tor is running on vpn certificate update error handling
Diffstat (limited to 'app/src/production')
-rw-r--r-- | app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java | 3 |
1 files changed, 1 insertions, 2 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 63b24ea2..3ec04f32 100644 --- a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java +++ b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java @@ -25,7 +25,6 @@ import android.util.Pair; import org.json.JSONException; import org.json.JSONObject; -import java.io.IOException; import java.net.URL; import java.util.List; import java.util.concurrent.TimeoutException; @@ -204,7 +203,7 @@ public class ProviderApiManager extends ProviderApiManagerBase { VpnStatus.logDebug("[API] VPN CERT: " + certString); } if (ConfigHelper.checkErroneousDownload(certString)) { - if (TorStatusObservable.getStatus() != OFF && TorStatusObservable.getProxyPort() != -1) { + if (TorStatusObservable.isRunning()) { setErrorResult(result, downloading_vpn_certificate_failed, null); } else if (certString == null || certString.isEmpty() ){ // probably 204 |