diff --git a/transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/common/UnconnectedPongEncoder.java b/transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/common/UnconnectedPongEncoder.java index f3d6de4..1a0403f 100644 --- a/transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/common/UnconnectedPongEncoder.java +++ b/transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/common/UnconnectedPongEncoder.java @@ -54,6 +54,6 @@ public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) pongBuffer.writeBytes(magicBuf, magicBuf.readerIndex(), magicBuf.readableBytes()); pongBuffer.writeShort(pongData.readableBytes()); pongBuffer.writeBytes(pongData, pongData.readerIndex(), pongData.readableBytes()); - ctx.write(new DatagramPacket(pongBuffer, pong.getSender())); + ctx.write(new DatagramPacket(pongBuffer, pong.getSender()), promise); } }