summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-01-27 16:55:32 +0100
committerArne Schwabe <arne@rfc2549.org>2013-01-27 16:55:32 +0100
commit0e01c8f0379ab5b7f1923506d35ef65aea722ec6 (patch)
treea0c40a86723b5ed036e6a5f208c5807065daa4b3 /src/de
parent3206c7fdf6ab364856ceacfd5212e230a44ef1dd (diff)
Rename managmentThread member
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/OpenVpnService.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnService.java b/src/de/blinkt/openvpn/OpenVpnService.java
index 4dff943b..53ae80b1 100644
--- a/src/de/blinkt/openvpn/OpenVpnService.java
+++ b/src/de/blinkt/openvpn/OpenVpnService.java
@@ -58,7 +58,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
private CIDRIP mLocalIP=null;
- private OpenVpnManagementThread mSocketManager;
+ private OpenVpnManagementThread mManagementThread;
private Thread mSocketManagerThread;
private int mMtu;
@@ -214,7 +214,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
void registerNetworkStateReceiver() {
// Registers BroadcastReceiver to track network connection changes.
IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
- mNetworkStateReceiver = new NetworkSateReceiver(mSocketManager);
+ mNetworkStateReceiver = new NetworkSateReceiver(mManagementThread);
this.registerReceiver(mNetworkStateReceiver, filter);
}
@@ -266,8 +266,8 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
if(mgmtsocket!=null) {
// start a Thread that handles incoming messages of the managment socket
- mSocketManager = new OpenVpnManagementThread(mProfile,mgmtsocket,this);
- mSocketManagerThread = new Thread(mSocketManager,"OpenVPNMgmtThread");
+ mManagementThread=new OpenVpnManagementThread(mProfile,mgmtsocket,this);
+ mSocketManagerThread = new Thread(mManagementThread,"OpenVPNMgmtThread");
mSocketManagerThread.start();
OpenVPN.logInfo("started Socket Thread");
registerNetworkStateReceiver();
@@ -288,7 +288,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
@Override
public void onDestroy() {
if (mProcessThread != null) {
- mSocketManager.managmentCommand("signal SIGINT\n");
+ mManagementThread.managmentCommand("signal SIGINT\n");
mProcessThread.interrupt();
}
@@ -505,4 +505,8 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
return false;
}
}
+
+ public OpenVpnManagementThread getManagementThread() {
+ return mManagementThread;
+ }
}