diff --git a/ArchiSteamFarm/Program.cs b/ArchiSteamFarm/Program.cs index 7385f8aa5..603783f1f 100644 --- a/ArchiSteamFarm/Program.cs +++ b/ArchiSteamFarm/Program.cs @@ -4,7 +4,7 @@ // / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | | // /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_| // | -// Copyright 2015-2022 Łukasz "JustArchi" Domeradzki +// Copyright 2015-2023 Łukasz "JustArchi" Domeradzki // Contact: JustArchi@JustArchi.net // | // Licensed under the Apache License, Version 2.0 (the "License"); @@ -43,6 +43,9 @@ using Newtonsoft.Json; using NLog; using NLog.Targets; using SteamKit2; +#if !NETFRAMEWORK +using System.Net.Quic; +#endif namespace ArchiSteamFarm; @@ -539,7 +542,10 @@ internal static class Program { ArgumentNullException.ThrowIfNull(e); ArgumentNullException.ThrowIfNull(e.Exception); - await ASF.ArchiLogger.LogFatalException(e.Exception).ConfigureAwait(false); + // TODO: Remove conditionally ignoring QuicException once https://github.com/dotnet/runtime/issues/80111 is resolved + if (e.Exception.InnerExceptions.All(static exception => exception is not QuicException)) { + await ASF.ArchiLogger.LogFatalException(e.Exception).ConfigureAwait(false); + } // 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(); diff --git a/Directory.Build.props b/Directory.Build.props index 3ce4327e6..a4d3ceb99 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -56,6 +56,7 @@ +