Fix dispose warning
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -84,19 +84,18 @@ namespace WalletWasabi.Fluent.Desktop
crashReporter.SetException(ex);
}
}
-
+ finally
+ {
TerminateService.Terminate();
AppDomain.CurrentDomain.UnhandledException -= CurrentDomain_UnhandledException;
TaskScheduler.UnobservedTaskException -= TaskScheduler_UnobservedTaskException;
- if (singleInstanceChecker is { } single)
- {
- single.DisposeAsync().ConfigureAwait(false).GetAwaiter().GetResult();
- }
+ singleInstanceChecker?.DisposeAsync().ConfigureAwait(false).GetAwaiter().GetResult();
// Trigger the CrashReport process.
crashReporter.TryInvokeIfRequired();
+ }
Logger.LogSoftwareStopped("Wasabi");

Fix dispose warning