mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
This commit is contained in:
parent
53c88725aa
commit
5ba0ad8eed
1 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue