From 645e14c043776bfdff8caa62a4e1221290c76125 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Sat, 18 Feb 2023 21:58:16 +0100 Subject: [PATCH] Fixed error handling suppressing exceptions sometimes --- .../java/net/raphimc/viaproxy/proxy/util/ExceptionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/raphimc/viaproxy/proxy/util/ExceptionUtil.java b/src/main/java/net/raphimc/viaproxy/proxy/util/ExceptionUtil.java index 6839499..35150f9 100644 --- a/src/main/java/net/raphimc/viaproxy/proxy/util/ExceptionUtil.java +++ b/src/main/java/net/raphimc/viaproxy/proxy/util/ExceptionUtil.java @@ -43,7 +43,7 @@ public class ExceptionUtil { } public static void handleNettyException(ChannelHandlerContext ctx, Throwable cause, ProxyConnection proxyConnection) { - if (!ctx.channel().isOpen() || !ctx.channel().isActive()) return; + if (!ctx.channel().isOpen()) return; if (cause instanceof ClosedChannelException) return; if (cause instanceof IOException) return; if (cause instanceof CloseAndReturn) {