summaryrefslogtreecommitdiff
path: root/src/se
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-06-18 20:32:47 -0600
committerSean Leonard <meanderingcode@aetherislands.net>2013-06-20 18:54:43 -0600
commita56ecf1b46a158485aa89d2a8f1f5b1b0d819b39 (patch)
tree11684598ea20be2cd909279573b09b01ad614a92 /src/se
parent98b27656cdb2e76bf966baad0dd8766fd1ebbbdd (diff)
Forceful stopping of OpenVPN when trying without bound service
Diffstat (limited to 'src/se')
-rw-r--r--src/se/leap/leapclient/EIP.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/EIP.java b/src/se/leap/leapclient/EIP.java
index 4e23675a..5afffd61 100644
--- a/src/se/leap/leapclient/EIP.java
+++ b/src/se/leap/leapclient/EIP.java
@@ -13,6 +13,7 @@ import org.json.JSONObject;
import se.leap.openvpn.ConfigParser;
import se.leap.openvpn.ConfigParser.ConfigParseError;
import se.leap.openvpn.LaunchVPN;
+import se.leap.openvpn.OpenVpnManagementThread;
import se.leap.openvpn.OpenVpnService;
import se.leap.openvpn.OpenVpnService.LocalBinder;
import se.leap.openvpn.ProfileManager;
@@ -193,6 +194,9 @@ public final class EIP extends IntentService {
private void stopEIP() {
if (mBound)
mVpnService.onRevoke();
+ else
+ OpenVpnManagementThread.stopOpenVPN();
+
if (mReceiver != null){
Bundle resultData = new Bundle();
resultData.putString(ConfigHelper.REQUEST_TAG, ACTION_STOP_EIP);