Add ConfigureAwait false
MODIFY
WalletWasabi/BitcoinCore/Monitoring/P2pReconnector.cs
WalletWasabi/BitcoinCore/Monitoring/P2pReconnector.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.BitcoinCore.Monitoring
}
catch
{
- await P2pNode.DisconnectAsync(cancel);
+ await P2pNode.DisconnectAsync(cancel).ConfigureAwait(false);
throw;
}

MODIFY
WalletWasabi/BitcoinCore/P2pNode.cs
WalletWasabi/BitcoinCore/P2pNode.cs
@@ -131,7 +131,7 @@ namespace WalletWasabi.BitcoinCore
{
Stop?.Cancel();
await ReconnectorTask.ConfigureAwait(false);
- await DisconnectAsync(CancellationToken.None);
+ await DisconnectAsync(CancellationToken.None).ConfigureAwait(false);
Stop?.Dispose();
Stop = null;
}

Add ConfigureAwait false