Skip to content

Commit

Permalink
1.0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
paissaheavyindustries committed Apr 25, 2022
1 parent b1c7e05 commit 01f98d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SnoopyPlugin/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,12 @@ private void SendData()
}
lock (sendBuffer)
{
stuff.AddRange(sendBuffer);
sendBuffer.Clear();
int num = sendBuffer.Count > 1000 ? 1000 : sendBuffer.Count;
if (num > 0)
{
stuff.AddRange(sendBuffer.Take(num));
sendBuffer.RemoveRange(0, num);
}
StatsEventsInQueue = 0;
}
if (stuff.Count == 0)
Expand Down

0 comments on commit 01f98d5

Please sign in to comment.