summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-10-19 02:18:04 +0200
committercyBerta <cyberta@riseup.net>2019-10-19 02:18:04 +0200
commit76fb364ec44496f9aca3e58b01fdb6a0957b0940 (patch)
treee7d4c248e12bf8e71c374b12437c0736d65559bc /app/src/main/java/se/leap
parent5cd9b7fdb0e78fbe30aca02ad75306a3a5208d3c (diff)
always stop vpn if setup failed (for now)
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/EipSetupObserver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EipSetupObserver.java b/app/src/main/java/se/leap/bitmaskclient/EipSetupObserver.java
index 7327c416..92e3e1a4 100644
--- a/app/src/main/java/se/leap/bitmaskclient/EipSetupObserver.java
+++ b/app/src/main/java/se/leap/bitmaskclient/EipSetupObserver.java
@@ -168,6 +168,7 @@ class EipSetupObserver extends BroadcastReceiver implements VpnStatus.StateListe
if (resultCode == RESULT_CANCELED) {
//setup failed
finishGatewaySetup(false);
+ EipCommand.stopVPN(context);
EipStatus.refresh();
}
break;
@@ -178,7 +179,6 @@ class EipSetupObserver extends BroadcastReceiver implements VpnStatus.StateListe
for (EipSetupListener listener : listeners) {
listener.handleEipEvent(intent);
}
-
}
private void handleGatewaySetupObserverEvent(Intent event) {