Skip to content

Commit bc89141

Browse files
Fix shutdown deadlocks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f453558 commit bc89141

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/UniGetUI.Avalonia/Infrastructure/AvaloniaBootstrapper.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public static async Task StopBackgroundApiAsync()
205205

206206
BackgroundApiRunner backgroundApi = _backgroundApi;
207207
_backgroundApi = null;
208-
await backgroundApi.Stop();
208+
await backgroundApi.Stop().ConfigureAwait(false);
209209
}
210210

211211
private static AutomationAppInfo GetAppInfo()

‎src/UniGetUI.Interface.BackgroundApi/BackgroundApi.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ public async Task Stop()
20232023
{
20242024
if (_host is not null)
20252025
{
2026-
await _host.StopAsync();
2026+
await _host.StopAsync().ConfigureAwait(false);
20272027
_host.Dispose();
20282028
_host = null;
20292029
}

0 commit comments

Comments
 (0)