From 76fb364ec44496f9aca3e58b01fdb6a0957b0940 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 19 Oct 2019 02:18:04 +0200 Subject: always stop vpn if setup failed (for now) --- app/src/main/java/se/leap/bitmaskclient/EipSetupObserver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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) { -- cgit v1.2.3