Skip to content

Commit 8269def

Browse files
committed
Throw original exception when encoding packet
1 parent ea983c1 commit 8269def

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bedrock-connection/src/main/java/org/cloudburstmc/protocol/bedrock/netty/codec/packet/BedrockPacketCodec.java

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ protected final void encode(ChannelHandlerContext ctx, BedrockPacketWrapper msg,
5454
if (log.isDebugEnabled()) {
5555
log.debug("Error encoding packet {}", msg.getPacket(), t);
5656
}
57+
throw t;
5758
} finally {
5859
buf.release();
5960
}

0 commit comments

Comments
 (0)