Skip to content

Commit

Permalink
fixed deadlock issue in WaitToComplete method when buffer was already…
Browse files Browse the repository at this point in the history
… empty
  • Loading branch information
bezzad committed Nov 3, 2023
1 parent 74558bc commit 26e71f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Downloader/ConcurrentPacketBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void ResumeAddingIfEmpty()

public void WaitToComplete()
{
_completionEvent.Wait();
_completionEvent.Wait(TimeSpan.FromMilliseconds(100));
}

public void CompleteAdding()
Expand Down

0 comments on commit 26e71f3

Please sign in to comment.