From d8fe0f52dbcacf07483cd7dd929d0a20a4ca9def Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 17 May 2020 11:19:14 +0100 Subject: [PATCH] Update src/ImageSharp/Formats/Jpeg/JpegDecoder.cs Co-authored-by: Brian Popow <38701097+brianpopow@users.noreply.github.com> --- src/ImageSharp/Formats/Jpeg/JpegDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs b/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs index 09bf77022..810308744 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs @@ -27,7 +27,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg using var decoder = new JpegDecoderCore(configuration, this); try { - return await decoder.DecodeAsync(stream); + return await decoder.DecodeAsync(stream).ConfigureAwait(false); } catch (InvalidMemoryOperationException ex) {