mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Avoid terminating the process if not mandatory
This commit is contained in:
@@ -526,7 +526,10 @@ internal static class Program {
|
||||
ArgumentNullException.ThrowIfNull(e.ExceptionObject);
|
||||
|
||||
await ASF.ArchiLogger.LogFatalException((Exception) e.ExceptionObject).ConfigureAwait(false);
|
||||
await Exit(1).ConfigureAwait(false);
|
||||
|
||||
if (e.IsTerminating) {
|
||||
await Exit(1).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
private static async void OnUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e) {
|
||||
|
||||
Reference in New Issue
Block a user