Remove duplicated IsRunning checks
MODIFY
WalletWasabi/Services/ConfigWatcher.cs
WalletWasabi/Services/ConfigWatcher.cs
@@ -42,9 +42,6 @@ namespace WalletWasabi.Services
{
try
{
- // If stop was requested return.
- if (!IsRunning) return;
-
await Task.Delay(period, Stop.Token);
if (await Config.CheckFileChangeAsync())

MODIFY
WalletWasabi/Services/UpdateChecker.cs
WalletWasabi/Services/UpdateChecker.cs
@@ -40,9 +40,6 @@ namespace WalletWasabi.Services
{
try
{
- // If stop was requested return.
- if (!IsRunning) return;
-
(bool backendCompatible, bool clientUpToDate) updates = await WasabiClient.CheckUpdatesAsync(Stop.Token);
if (!updates.backendCompatible)

MODIFY
WalletWasabi/Services/WasabiSynchronizer.cs
WalletWasabi/Services/WasabiSynchronizer.cs
@@ -257,9 +257,6 @@ namespace WalletWasabi.Services
{
try
{
- // If stop was requested return.
- if (!IsRunning) return;
-
while (AreRequestsBlocked())
{
await Task.Delay(3000, Cancel.Token);

MODIFY
WalletWasabi/TorSocks5/TorProcessManager.cs
WalletWasabi/TorSocks5/TorProcessManager.cs
@@ -257,9 +257,6 @@ namespace WalletWasabi.TorSocks5
{
try
{
- // If stop was requested return.
- if (!IsRunning) return;
-
await Task.Delay(torMisbehaviorCheckPeriod, Stop.Token).ConfigureAwait(false);
if (TorHttpClient.TorDoesntWorkSince != null) // If Tor misbehaves.

Remove duplicated IsRunning checks