PeriodicRunner: Fix possible NullPointerException
MODIFY
WalletWasabi/Bases/PeriodicRunner.cs
WalletWasabi/Bases/PeriodicRunner.cs
@@ -101,10 +101,9 @@ namespace WalletWasabi.Bases
{
lock (TriggerLock)
{
- if (TriggeringCts.IsCancellationRequested)
+ if (TriggeringCts?.IsCancellationRequested ?? false)
{
TriggeringCts?.Dispose();
- TriggeringCts = null;
TriggeringCts = new CancellationTokenSource();
}
}

PeriodicRunner: Fix possible NullPointerException