Skip to content

Commit

Permalink
Fix pong promise never being completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alemiz112 committed May 20, 2024
1 parent efdf449 commit f408c9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit f408c9a

Please sign in to comment.