mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-12-22 16:38:04 +01:00
Fixed error handling suppressing exceptions sometimes
This commit is contained in:
parent
bae12ec8a6
commit
645e14c043
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user