simplify Tor termination
MODIFY
HiddenWallet/HiddenWallet.API/Wrappers/WalletWrapper.cs
HiddenWallet/HiddenWallet.API/Wrappers/WalletWrapper.cs
@@ -216,15 +216,12 @@ namespace HiddenWallet.API.Wrappers
_cts.Cancel();
await Task.WhenAll(_walletJobTask).ConfigureAwait(false);
- if(Global.TorProcess != null)
- {
- if (!Global.TorProcess.HasExited)
+ if(Global.TorProcess != null && !Global.TorProcess.HasExited)
{
Console.WriteLine("Terminating Tor process");
Global.TorProcess.Kill();
}
}
- }
public StatusResponse GetStatusResponse()
{

simplify Tor termination