Fix when we dispose.
MODIFY
WalletWasabi.Fluent/Global.cs
WalletWasabi.Fluent/Global.cs
@@ -346,9 +346,6 @@ public class Global
Logger.LogInfo($"Disposed {nameof(LegalChecker)}.");
}
- RoundStateUpdaterCircuit.Dispose();
- Logger.LogInfo($"Disposed {nameof(RoundStateUpdaterCircuit)}.");
-
if (HostedServices is { } backgroundServices)
{
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(21));
@@ -357,6 +354,9 @@ public class Global
Logger.LogInfo("Stopped background services.");
}
+ RoundStateUpdaterCircuit.Dispose();
+ Logger.LogInfo($"Disposed {nameof(RoundStateUpdaterCircuit)}.");
+
if (Synchronizer is { } synchronizer)
{
await synchronizer.StopAsync().ConfigureAwait(false);

Fix when we dispose.