Skip to content

Commit e0d1493

Browse files
committed
Call the new InternalDetectFormatAsync() from DetectFormatAsync()
1 parent 22e1c06 commit e0d1493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Image.FromStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static Task<IImageFormat> DetectFormatAsync(
7272
=> WithSeekableStreamAsync(
7373
options,
7474
stream,
75-
(s, _) => Task.FromResult(InternalDetectFormat(options.Configuration, s)),
75+
async (s, ct) => await InternalDetectFormatAsync(options.Configuration, s, ct).ConfigureAwait(false),
7676
cancellationToken);
7777

7878
/// <summary>

0 commit comments

Comments
 (0)