Fix hang when UI thread destroyed on exit.
MODIFY
WalletWasabi/Extensions/ProcessExtensions.cs
WalletWasabi/Extensions/ProcessExtensions.cs
@@ -13,7 +13,7 @@ namespace System.Diagnostics
{
while (!process.HasExited)
{
- await Task.Delay(100, cancellationToken);
+ await Task.Delay(100, cancellationToken).ConfigureAwait(false); // TODO: https://github.com/zkSNACKs/WalletWasabi/issues/1452
}
}
}

MODIFY
WalletWasabi/Hwi/HwiProcessManager.cs
WalletWasabi/Hwi/HwiProcessManager.cs
@@ -154,7 +154,7 @@ namespace WalletWasabi.Hwi
}
))
{
- await process.WaitForExitAsync(cancellationToken);
+ await process.WaitForExitAsync(cancellationToken).ConfigureAwait(false); // TODO: https://github.com/zkSNACKs/WalletWasabi/issues/1452;
if (process.ExitCode != 0)
{

Fix hang when UI thread destroyed on exit.