diff options
author | cyBerta <cyberta@riseup.net> | 2022-07-18 18:37:02 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-07-18 18:37:02 +0200 |
commit | ea0e8e4d5ef61af57ef5826d7526f0bfc4c459b2 (patch) | |
tree | 603746ecbc655f7cbe45f1e147e30c37e774c520 /app/src/main/java/se | |
parent | e9afdcda3e10c9cb86a39f4c1da1702e07597ef6 (diff) |
update eip-service.json every 3 days or after a unsuccessful connection attempt, use a small delay to ensure the VPN is ready for the first network request
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java b/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java index 56350703..a523f440 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java @@ -373,7 +373,9 @@ public class EipSetupObserver extends BroadcastReceiver implements VpnStatus.Sta } if (shouldCheckAppUpdate()) { - DownloadServiceCommand.execute(appContext, CHECK_VERSION_FILE); + Bundle parameters = new Bundle(); + parameters.putLong(DELAY, 500); + DownloadServiceCommand.execute(appContext, CHECK_VERSION_FILE, parameters); } if (provider.shouldUpdateVpnCertificate()) { |