Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-14 03:50:10 +01:00
Change error correction to use super, should restore default functionality to errors.
Dieser Commit ist enthalten in:
Ursprung
615b9f847c
Commit
b10aa30d9b
@ -8,7 +8,6 @@ import us.myles.ViaVersion.ConnectionInfo;
|
|||||||
import us.myles.ViaVersion.transformers.IncomingTransformer;
|
import us.myles.ViaVersion.transformers.IncomingTransformer;
|
||||||
import us.myles.ViaVersion.util.PacketUtil;
|
import us.myles.ViaVersion.util.PacketUtil;
|
||||||
|
|
||||||
import java.nio.channels.ClosedChannelException;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ViaDecodeHandler extends ByteToMessageDecoder {
|
public class ViaDecodeHandler extends ByteToMessageDecoder {
|
||||||
@ -45,15 +44,10 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
if (!(cause.getCause().getCause() instanceof CancelException)
|
if (!(cause.getCause().getCause() instanceof CancelException)) {
|
||||||
&& !(cause.getCause().getCause() instanceof ClosedChannelException)) {
|
if (!(cause.getCause() instanceof CancelException)) {
|
||||||
if (!(cause.getCause() instanceof CancelException)
|
if (!(cause instanceof CancelException)) {
|
||||||
&& !(cause.getCause() instanceof ClosedChannelException)) {
|
super.exceptionCaught(ctx, cause);
|
||||||
if (!(cause instanceof CancelException)
|
|
||||||
&& !(cause instanceof ClosedChannelException)) {
|
|
||||||
if (cause instanceof Exception){
|
|
||||||
cause.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,14 +72,10 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
if (!(cause.getCause().getCause() instanceof CancelException)
|
if (!(cause.getCause().getCause() instanceof CancelException)) {
|
||||||
&& !(cause.getCause().getCause() instanceof ClosedChannelException)) {
|
if (!(cause.getCause() instanceof CancelException)) {
|
||||||
if (!(cause.getCause() instanceof CancelException)
|
if (!(cause instanceof CancelException)) {
|
||||||
&& !(cause.getCause() instanceof ClosedChannelException)) {
|
super.exceptionCaught(ctx, cause);
|
||||||
if (!(cause instanceof CancelException)
|
|
||||||
&& !(cause instanceof ClosedChannelException)) {
|
|
||||||
if (cause instanceof Exception)
|
|
||||||
cause.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren