diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-12-24 14:24:01 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-12-24 14:24:01 +0100 |
commit | 809e278681e3a1f526db94bf09ecf364bb4bfb82 (patch) | |
tree | a6852708cbdf7e4b4b6584e003bb2cf0c37043d0 /src/de/blinkt | |
parent | 192410e3f1d5588712a85bbd7e9fd801dc5a0989 (diff) |
Reconnect USR1, still strange ….
Diffstat (limited to 'src/de/blinkt')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVpnManagementThread.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java index 9926ba13..4e26c44b 100644 --- a/src/de/blinkt/openvpn/OpenVpnManagementThread.java +++ b/src/de/blinkt/openvpn/OpenVpnManagementThread.java @@ -231,7 +231,6 @@ public class OpenVpnManagementThread implements Runnable { }
mWaitingForRelease=false;
- mReleaseHold=true;
mLastHoldRelease = System.currentTimeMillis();
managmentCommand("hold release\n");
managmentCommand("bytecount " + mBytecountinterval + "\n");
@@ -239,10 +238,10 @@ public class OpenVpnManagementThread implements Runnable { }
public void releaseHold() {
+ mReleaseHold=true;
if(mWaitingForRelease)
releaseHoldCmd();
- else
- mReleaseHold=true;
+
}
private void processProxyCMD(String argument) {
@@ -467,9 +466,9 @@ public class OpenVpnManagementThread implements Runnable { }
public void signalusr1() {
+ mReleaseHold=false;
if(!mWaitingForRelease)
managmentCommand("signal SIGUSR1\n");
- mReleaseHold=false;
}
public void reconnect() {
|