Skip to content

Commit

Permalink
Merge branch 'bugfix/empty-queue' into bugfix/proguard-exception-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
konraddysput committed Jun 25, 2024
2 parents 8c25d8e + 9b39c88 commit 0fe0c0b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,12 @@ private long GetNextStartPosition()
int nextLineBytes = NewRow.Length;
while (numberOfFreeBytes < expectedFreedBytes)
{
if (_logSize.TryDequeue(out long result))
{
numberOfFreeBytes += (result + nextLineBytes);
}
else
if (_logSize.Count == 0)
{
return numberOfFreeBytes;
}

numberOfFreeBytes += (_logSize.Dequeue() + nextLineBytes);
}

return numberOfFreeBytes;
Expand Down

0 comments on commit 0fe0c0b

Please sign in to comment.