Remove dispose & null assignment that are no longer necessary.
MODIFY
WalletWasabi/Tor/Http/TorHttpClient.cs
WalletWasabi/Tor/Http/TorHttpClient.cs
@@ -84,7 +84,6 @@ namespace WalletWasabi.Tor.Http
request.Content = content;
}
-
try
{
using (await AsyncLock.LockAsync(cancel).ConfigureAwait(false))
@@ -99,9 +98,6 @@ namespace WalletWasabi.Tor.Http
{
Logger.LogTrace(ex);
- TorSocks5Client?.Dispose(); // rebuild the connection and retry
- TorSocks5Client = null;
-
cancel.ThrowIfCancellationRequested();
try
{
@@ -114,9 +110,6 @@ namespace WalletWasabi.Tor.Http
{
Logger.LogTrace(ex);
- TorSocks5Client?.Dispose(); // rebuild the connection and retry
- TorSocks5Client = null;
-
try
{
await Task.Delay(1000, cancel).ConfigureAwait(false);

Remove dispose & null assignment that are no longer necessary.