Skip to content

Commit b877fbf

Browse files
Kas-tleOmniacDev
andcommitted
Upstream fix for RakSessionCodec stale datagram resend
Co-authored-by: Omniac <64994204+OmniacDev@users.noreply.github.com> Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
1 parent 857cd9c commit b877fbf

File tree

1 file changed

+1
-1
lines changed
  • transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/common

1 file changed

+1
-1
lines changed

transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/common/RakSessionCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ private int sendStaleDatagrams(ChannelHandlerContext ctx, long curTime) {
568568
}
569569

570570
if (hasResent) {
571-
this.slidingWindow.onResend(curTime);
571+
this.slidingWindow.onResend(this.datagramWriteIndex);
572572
}
573573

574574
return resendCount;

0 commit comments

Comments
 (0)