Skip to content

Commit 177d34d

Browse files
committed
IsCompletedSuccessfully
1 parent 1ee90a8 commit 177d34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static class HttpResponseWritingExtensions
7474
Write(response, text, encoding);
7575

7676
var flushAsyncTask = response.BodyPipe.FlushAsync(cancellationToken);
77-
if (flushAsyncTask.IsCompleted)
77+
if (flushAsyncTask.IsCompletedSuccessfully)
7878
{
7979
// Most implementations of ValueTask reset state in GetResult, so call it before returning a completed task.
8080
flushAsyncTask.GetAwaiter().GetResult();

0 commit comments

Comments
 (0)