We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92dced commit bdbaeb9Copy full SHA for bdbaeb9
1 file changed
kcp2k/Assets/kcp2k/kcp/Kcp.cs
@@ -393,7 +393,8 @@ internal void ParseUna(uint una)
393
int removed = 0;
394
foreach (Segment seg in snd_buf)
395
{
396
- if (Utils.TimeDiff(una, seg.sn) > 0)
+ // if (Utils.TimeDiff(una, seg.sn) > 0)
397
+ if (seg.sn < una)
398
399
// can't remove while iterating. remember how many to remove
400
// and do it after the loop.
0 commit comments