Skip to content

Commit

Permalink
Merge pull request #5615 from Aprite/fix-minio-objectdisposedexception
Browse files Browse the repository at this point in the history
fix:ObjectDisposedException
  • Loading branch information
realLiangshiwei authored Sep 27, 2020
2 parents b2291e9 + c26d470 commit be4018a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public override async Task<Stream> GetOrNullAsync(BlobProviderGetArgs args)
}

var memoryStream = new MemoryStream();
await client.GetObjectAsync(containerName, blobName, async stream =>
await client.GetObjectAsync(containerName, blobName, (stream) =>
{
if (stream != null)
{
await stream.CopyToAsync(memoryStream);
stream.CopyTo(memoryStream);
}
else
{
Expand Down

0 comments on commit be4018a

Please sign in to comment.