mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
fix incorrect chunking algorithm
This commit is contained in:
1 parent
2cfc5ac039
commit
f48143610c
1 file changed
+2
-1
@@ -283,12 +283,13 @@ public static class Extensions
|
||||
|
||||
if (count + length > chunkSize)
|
||||
{
|
||||
chunks.Enqueue(current.ToArray());
|
||||
chunks.Enqueue([.. current]);
|
||||
current.Clear();
|
||||
count = 0;
|
||||
}
|
||||
|
||||
current.Add(netData);
|
||||
count += length;
|
||||
}
|
||||
|
||||
if (current.Count > 0)
|
||||
|
||||
Reference in new issue
Block a user