From 43b0d5e9443cee6b465528a8e16890dffbf922a0 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 17 May 2020 11:21:31 +0100 Subject: [PATCH] Update src/ImageSharp/Image.FromStream.cs Co-authored-by: Brian Popow <38701097+brianpopow@users.noreply.github.com> --- src/ImageSharp/Image.FromStream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Image.FromStream.cs b/src/ImageSharp/Image.FromStream.cs index cb6ac226b0..cdd44a4fd6 100644 --- a/src/ImageSharp/Image.FromStream.cs +++ b/src/ImageSharp/Image.FromStream.cs @@ -680,7 +680,7 @@ namespace SixLabors.ImageSharp using (var memoryStream = new MemoryStream()) // should really find a nice way to use a pool for these!! { - await stream.CopyToAsync(memoryStream); + await stream.CopyToAsync(memoryStream).ConfigureAwait(false); memoryStream.Position = 0; return await action(memoryStream).ConfigureAwait(false);