summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2016-09-28 12:43:48 +0200
committerArne Schwabe <arne@rfc2549.org>2016-09-28 12:43:48 +0200
commitaf87e5e9626236c1ea3cda594ebf0a63bfc3d5b5 (patch)
tree357c63cc14e608960c2758ecdc3a898866e4eac6 /main/src
parent7785186a44462250cf7a8cc52e1aa14d57a1788d (diff)
Ignore errors when the management connection is closed (i.e. OpenVPN process exited), closes #553
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java3
-rwxr-xr-xmain/src/main/res/values/strings.xml1
2 files changed, 2 insertions, 2 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 90533972..16a03394 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
@@ -164,8 +164,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement {
}
} catch (IOException e) {
- if (!e.getMessage().equals("socket closed") && !e.getMessage().equals("Connection reset by peer"))
- VpnStatus.logException(e);
+ VpnStatus.logDebug(R.string.management_socket_closed, e.getLocalizedMessage());
}
synchronized (active) {
active.remove(this);
diff --git a/main/src/main/res/values/strings.xml b/main/src/main/res/values/strings.xml
index d9c11a8b..62b4eb38 100755
--- a/main/src/main/res/values/strings.xml
+++ b/main/src/main/res/values/strings.xml
@@ -416,4 +416,5 @@
<string name="connectretrymaxtitle">Maximum time between connection attempts</string>
<string name="state_waitconnectretry">Waiting %ss seconds between connection attempt</string>
<string name="nought_alwayson_warning"><![CDATA[If you did not get a VPN confirmation dialog, you have \"Always on VPN\" enabled for another app. In that case only that app is allowed to connect to a VPN. Check under Settings-> Networks more .. -> VPNS]]></string>
+ <string name="management_socket_closed">Connection to OpenVPN closed (%s)</string>
</resources>