Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Sep 16, 2022
1 parent 24e6db4 commit 02f9b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Downloader/ChunkDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ internal async Task ReadStream(Stream stream, PauseToken pauseToken, Cancellatio
CancellationToken? innerToken = null;
try
{
// close stream on cancellation because, it's not work on .Net Framework
using (cancelToken.Register(stream.Close))
{
while (CanReadStream() && readSize > 0)
Expand Down

0 comments on commit 02f9b81

Please sign in to comment.