Dispose SingleInstanceChecker last
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -750,26 +750,26 @@ namespace WalletWasabi.Gui
cache.Dispose();
}
- Logger.LogDebug($"Step: {nameof(SingleInstanceChecker)}.", nameof(Global));
+ Logger.LogDebug($"Step: {nameof(BitcoinStore)}.", nameof(Global));
try
{
- SingleInstanceChecker?.Dispose();
+ await BitcoinStore.DisposeAsync().ConfigureAwait(false);
}
catch (Exception ex)
{
- Logger.LogError($"Error during the disposal of {nameof(SingleInstanceChecker)}: {ex}");
+ Logger.LogError($"Error during the disposal of {nameof(BitcoinStore)}: {ex}");
}
Logger.LogDebug($"Step: {nameof(SingleInstanceChecker)}.", nameof(Global));
try
{
- await BitcoinStore.DisposeAsync().ConfigureAwait(false);
+ SingleInstanceChecker?.Dispose();
}
catch (Exception ex)
{
- Logger.LogError($"Error during the disposal of {nameof(BitcoinStore)}: {ex}");
+ Logger.LogError($"Error during the disposal of {nameof(SingleInstanceChecker)}: {ex}");
}
Logger.LogDebug($"Step: {nameof(AsyncMutex)}.", nameof(Global));

Dispose SingleInstanceChecker last