Browse Source

Update src/ImageSharp/Image.FromStream.cs

Co-authored-by: Brian Popow <38701097+brianpopow@users.noreply.github.com>
pull/1574/head
James Jackson-South 6 years ago
committed by GitHub
parent
commit
393e95e90f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Image.FromStream.cs

2
src/ImageSharp/Image.FromStream.cs

@ -675,7 +675,7 @@ namespace SixLabors.ImageSharp
stream.Position = 0;
}
return await action(stream);
return await action(stream).ConfigureAwait(false);
}
using (var memoryStream = new MemoryStream()) // should really find a nice way to use a pool for these!!

Loading…
Cancel
Save