From 860a88aeeeb9619883206b421d2ec7978a865043 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 5 Dec 2014 10:45:26 +0100 Subject: Fix error message on socket close (boolean algebra beginners mistake...) --HG-- extra : rebase_source : e3eae5e9cb9817655b8556ff1caea09acad20c86 --- main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1692fecc..0588044c 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java +++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java @@ -157,7 +157,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement { } } catch (IOException e) { - if (!e.getMessage().equals("socket closed") || !e.getMessage().equals("Connection reset by peer")) + if (!e.getMessage().equals("socket closed") && !e.getMessage().equals("Connection reset by peer")) VpnStatus.logException(e); } synchronized (active) { -- cgit v1.2.3