diff --git a/src/ImageSharp/Image.cs b/src/ImageSharp/Image.cs index 8a691a4b33..fd2fb1f879 100644 --- a/src/ImageSharp/Image.cs +++ b/src/ImageSharp/Image.cs @@ -185,7 +185,7 @@ namespace SixLabors.ImageSharp public Task VisitAsync(Image image) where TPixel : unmanaged, IPixel { - return this.encoder.EncodeAsync(image, this.stream); + return this.encoder.EncodeAsync(image, this.stream).ConfigureAwait(false); } } }