From 9a5a1c81122cd63fc1652bd30b8447cd06453ddf Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 28 Nov 2014 22:31:43 +0100 Subject: On Android 5.0 closing the socket might also report "Connection reset by peer", ignore the exception in this case (closes issue #307) --HG-- extra : rebase_source : 923785d8ddc82eeff7e077bde8e8bd55ae46f3cc --- 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 ddc134b5..1692fecc 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")) + if (!e.getMessage().equals("socket closed") || !e.getMessage().equals("Connection reset by peer")) VpnStatus.logException(e); } synchronized (active) { -- cgit v1.2.3