Crash on unobserved task exceptions again

This commit is contained in:
JustArchi
2018-06-20 14:46:46 +02:00
parent e65b7e30d3
commit 62c31fd4d0

View File

@@ -421,10 +421,7 @@ namespace ArchiSteamFarm {
}
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.
e.SetObserved();
await Exit(1).ConfigureAwait(false);
}
private static void ParsePostInitArgs(IReadOnlyCollection<string> args) {