Fixed error handling suppressing exceptions sometimes

This commit is contained in:
RaphiMC 2023-02-18 21:58:16 +01:00
parent bae12ec8a6
commit 645e14c043

View File

@ -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) {