summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-05-29 10:45:00 +0200
committerParménides GV <parmegv@sdf.org>2014-05-29 10:45:00 +0200
commit2ee8fb46dc2b719426e9735ba4a80729f1edc1d8 (patch)
tree2fd9bd439699022714787bb8511cf46fed19029f
parentf6139feeee3a2e5d68ce2e5848723d4c0a0ffda3 (diff)
Thread management has changed. Updated.
Now the thread managment doesn't happen statically, but through the binded openvpn service.
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/EIP.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EIP.java b/app/src/main/java/se/leap/bitmaskclient/EIP.java
index d5d3c55f..7d001865 100644
--- a/app/src/main/java/se/leap/bitmaskclient/EIP.java
+++ b/app/src/main/java/se/leap/bitmaskclient/EIP.java
@@ -136,7 +136,7 @@ public final class EIP extends IntentService {
*/
private boolean retreiveVpnService() {
Intent bindIntent = new Intent(this,OpenVpnService.class);
- bindIntent.setAction(OpenVpnService.RETRIEVE_SERVICE);
+ bindIntent.setAction(OpenVpnService.START_SERVICE);
return bindService(bindIntent, mVpnServiceConn, BIND_AUTO_CREATE);
}
@@ -256,7 +256,7 @@ public final class EIP extends IntentService {
if (mBound)
mVpnService.onRevoke();
else
- OpenVpnManagementThread.stopOpenVPN();
+ mVpnService.getManagement().stopVPN();
if (mReceiver != null){
Bundle resultData = new Bundle();