Archi 2021-11-23 10:47:33 +01:00
parent 53c88725aa
commit 5ba0ad8eed
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -472,10 +472,16 @@ internal static class Program {
throw new ArgumentNullException(nameof(e));
}
// TODO: Silence https://github.com/dotnet/runtime/issues/60856 - pending for removal (after verification) in 6.0.1+
if (e.Exception.InnerExceptions.All(static exception => exception is TimeoutException timeoutException && string.IsNullOrEmpty(timeoutException.StackTrace))) {
e.SetObserved();
return;
}
await ASF.ArchiLogger.LogFatalException(e.Exception).ConfigureAwait(false);
// Normally we should abort the application here, but many tasks are in fact failing in SK2 code which we can't easily fix
// Thanks Valve.
// Normally we should abort the application, but due to the fact that unobserved exceptions do not have to do that, it's a better idea to log it and try to continue
e.SetObserved();
}