add comment

This commit is contained in:
vis2k 2021-03-15 13:16:12 +08:00
parent 2f2ffb9f36
commit 7c7fa74572

View File

@ -87,6 +87,8 @@ void SimulateSend(int connectionId, int channelId, ArraySegment<byte> segment, L
if (!drop)
{
// simulate scramble (Random.Next is < max, so +1)
// note that list entries are NOT ordered by time anymore
// after inserting randomly.
int last = unreliableQueue.Count;
int index = unreliableScramble ? random.Next(0, last + 1) : last;