From 0904fdce16bd566fc7d70175b7403ced1a9706a8 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 29 Feb 2016 17:07:32 +0100 Subject: Fix last commit --- main/src/main/java/de/blinkt/openvpn/activities/DisconnectVPN.java | 2 +- main/src/main/java/de/blinkt/openvpn/api/ExternalOpenVPNService.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/main/java/de/blinkt/openvpn/activities/DisconnectVPN.java b/main/src/main/java/de/blinkt/openvpn/activities/DisconnectVPN.java index 3ba4f585..cc7e2266 100644 --- a/main/src/main/java/de/blinkt/openvpn/activities/DisconnectVPN.java +++ b/main/src/main/java/de/blinkt/openvpn/activities/DisconnectVPN.java @@ -81,7 +81,7 @@ public class DisconnectVPN extends Activity implements DialogInterface.OnClickLi if (which == DialogInterface.BUTTON_POSITIVE) { ProfileManager.setConntectedVpnProfileDisconnected(this); if (mService != null && mService.getManagement() != null) - mService.getManagement().stopVPN(); + mService.getManagement().stopVPN(false); } finish(); } diff --git a/main/src/main/java/de/blinkt/openvpn/api/ExternalOpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/api/ExternalOpenVPNService.java index a3b43dc9..00680d4f 100644 --- a/main/src/main/java/de/blinkt/openvpn/api/ExternalOpenVPNService.java +++ b/main/src/main/java/de/blinkt/openvpn/api/ExternalOpenVPNService.java @@ -83,7 +83,7 @@ public class ExternalOpenVPNService extends Service implements StateListener { if (ProfileManager.isTempProfile()) { if(intent.getPackage().equals(vp.mProfileCreator)) { if (mService != null && mService.getManagement() != null) - mService.getManagement().stopVPN(); + mService.getManagement().stopVPN(false); } } } @@ -305,7 +305,7 @@ public class ExternalOpenVPNService extends Service implements StateListener { public void disconnect() throws RemoteException { checkOpenVPNPermission(); if (mService != null && mService.getManagement() != null) - mService.getManagement().stopVPN(); + mService.getManagement().stopVPN(false); } @Override -- cgit v1.2.3