summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-12-01 17:13:26 +0100
committerParménides GV <parmegv@sdf.org>2014-12-01 17:13:26 +0100
commitba682a453c4f188d57562d764635f1db7e2e1cab (patch)
treea9e73536efc9b89a66247a252758f31d64ec00c1 /app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
parent2fc73d6bfe8d86464571258f008d8bcf6db0cc2d (diff)
Refresh gateways if the list is empty while starting eip.
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/eip/EIP.java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EIP.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
index 5169ef62..a67eaccd 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
@@ -116,6 +116,8 @@ public final class EIP extends IntentService {
* It also sets up early routes.
*/
private void startEIP() {
+ if(gateways.isEmpty())
+ updateEIPService();
GatewaySelector gateway_selector = new GatewaySelector(gateways);
activeGateway = gateway_selector.select();
if(activeGateway != null && activeGateway.getProfile() != null) {