Skip to content

Commit bdbaeb9

Browse files
author
mischa
committed
ParseUna simplified
1 parent b92dced commit bdbaeb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kcp2k/Assets/kcp2k/kcp/Kcp.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ internal void ParseUna(uint una)
393393
int removed = 0;
394394
foreach (Segment seg in snd_buf)
395395
{
396-
if (Utils.TimeDiff(una, seg.sn) > 0)
396+
// if (Utils.TimeDiff(una, seg.sn) > 0)
397+
if (seg.sn < una)
397398
{
398399
// can't remove while iterating. remember how many to remove
399400
// and do it after the loop.

0 commit comments

Comments
 (0)