From 0673e5b4bbff357ac0e80464acad8d62a83f42a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20St=C4=99pie=C5=84?= Date: Sat, 26 Oct 2024 23:05:33 +0200 Subject: [PATCH] fix bug in async middleware disposal --- src/PipelineNet/AsyncBaseMiddlewareFlow.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PipelineNet/AsyncBaseMiddlewareFlow.cs b/src/PipelineNet/AsyncBaseMiddlewareFlow.cs index 88f441d..e474586 100644 --- a/src/PipelineNet/AsyncBaseMiddlewareFlow.cs +++ b/src/PipelineNet/AsyncBaseMiddlewareFlow.cs @@ -82,6 +82,7 @@ internal static async Task DisposeMiddlewareAsync(MiddlewareResolverResult middl { await asyncDisposable.DisposeAsync().ConfigureAwait(false); } + else #else var completedTask = Task.FromResult(0); await completedTask.ConfigureAwait(false);