summaryrefslogtreecommitdiff
path: root/app/src/production/java
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-12-13 15:58:58 +0100
committercyBerta <cyberta@riseup.net>2019-12-13 16:00:03 +0100
commit2267c1d82c5c0ccd3d1cd2fe9e723709c993643c (patch)
treede4b0a6d58d74205c578d90efbced5624d1f22b9 /app/src/production/java
parent0977dcb66048d3039d6ff84b8d484ec90cf1c38e (diff)
improve better server balancing: update eip-service.json every 3 days after a successful connection in order to recognize newly added gateways (#8974)
Diffstat (limited to 'app/src/production/java')
-rw-r--r--app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java
index 10582cf3..41a63ad7 100644
--- a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java
+++ b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java
@@ -174,6 +174,7 @@ public class ProviderApiManager extends ProviderApiManagerBase {
setErrorResult(result, eipServiceJsonString);
} else {
provider.setEipServiceJson(eipServiceJson);
+ provider.setLastEipServiceUpdate(System.currentTimeMillis());
result.putBoolean(BROADCAST_RESULT_KEY, true);
}
} catch (NullPointerException | JSONException e) {