From efe8da6dca288f23e14c7980b5fb6b8852bcc0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Cor=C3=A9n?= Date: Tue, 10 Nov 2020 22:55:32 +0100 Subject: [PATCH] fix: Fixed reliable sequenced resend --- Ruffles/Channeling/Channels/ReliableSequencedChannel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ruffles/Channeling/Channels/ReliableSequencedChannel.cs b/Ruffles/Channeling/Channels/ReliableSequencedChannel.cs index f8ae59c..9802787 100644 --- a/Ruffles/Channeling/Channels/ReliableSequencedChannel.cs +++ b/Ruffles/Channeling/Channels/ReliableSequencedChannel.cs @@ -344,7 +344,7 @@ public void InternalUpdate(out bool timeout) { lock (_sendLock) { - for (ushort i = (ushort)(_outgoingLowestAckedSequence + 1); SequencingUtils.Distance(i, _lastOutgoingSequence, sizeof(ushort)) < 0; i++) + for (ushort i = (ushort)(_outgoingLowestAckedSequence + 1); SequencingUtils.Distance(i, _lastOutgoingSequence, sizeof(ushort)) <= 0; i++) { if (_sendSequencer.TryGet(i, out PendingOutgoingPacket value)) {