From c42ca589361afc8a703edaef5f2bca7c81142952 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 5 Jun 2017 15:16:50 +0200 Subject: Possible fix for #612 --- .../src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java index 2dfcf8c5..58f1458b 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java +++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java @@ -332,6 +332,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement { } private void handleHold(String argument) { + mWaitingForRelease = true; int waittime = Integer.parseInt(argument.split(":")[1]); if (shouldBeRunning()) { if (waittime > 1) @@ -344,10 +345,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement { VpnStatus.logDebug(R.string.state_waitconnectretry, String.valueOf(waittime)); } else { - mWaitingForRelease = true; - VpnStatus.updateStatePause(lastPauseReason); - } } -- cgit v1.2.3