From 7f3b8f4fcf4bdc954c3203b17202cb3ad252d85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= Date: Mon, 25 Mar 2024 21:18:01 +0100 Subject: [PATCH] fix: Added missing exection of the `action` --- .../Internals/WindowsFormsSynchronizationContextProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NetEvolve.Extensions.Hosting.WinForms/Internals/WindowsFormsSynchronizationContextProvider.cs b/src/NetEvolve.Extensions.Hosting.WinForms/Internals/WindowsFormsSynchronizationContextProvider.cs index 296a03c..a984099 100644 --- a/src/NetEvolve.Extensions.Hosting.WinForms/Internals/WindowsFormsSynchronizationContextProvider.cs +++ b/src/NetEvolve.Extensions.Hosting.WinForms/Internals/WindowsFormsSynchronizationContextProvider.cs @@ -72,6 +72,7 @@ public async ValueTask InvokeAsync([NotNull] Action action) { try { + action(); tcs.SetResult(); } catch (Exception e)