Better handling
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -220,16 +220,13 @@ public class Program
private static void TaskScheduler_UnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e)
{
- foreach (var exc in e.Exception.Flatten().InnerExceptions)
- {
- if (exc is SocketException)
+ if (e.Exception.Flatten().InnerException is SocketException exc)
{
Logger.LogTrace(exc);
}
else
{
- Logger.LogDebug(exc);
- }
+ Logger.LogDebug(e.Exception);
}
}

Better handling