summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-12-05 10:45:26 +0100
committerArne Schwabe <arne@rfc2549.org>2014-12-05 10:45:26 +0100
commit860a88aeeeb9619883206b421d2ec7978a865043 (patch)
tree6c739b8d51bec1be67e7bd80d4ef069078a63af0 /main/src
parent15c7bdc7bd97bb66f1d2e516162859732719a32c (diff)
Fix error message on socket close (boolean algebra beginners mistake...)
--HG-- extra : rebase_source : e3eae5e9cb9817655b8556ff1caea09acad20c86
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java2
1 files changed, 1 insertions, 1 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 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) {