summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-12-24 14:24:01 +0100
committerArne Schwabe <arne@rfc2549.org>2012-12-24 14:24:01 +0100
commitef38cc84f6181856ddd6419323d25a8af7c6a176 (patch)
treedf29f3f2a87145b169c5a33a30a8372c912a4e4a /src
parent3dbb55fe35b12e5fcbf38e7ecf8de043b16327de (diff)
Reconnect USR1, still strange ….
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/OpenVpnManagementThread.java7
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() {