Always exit with non-zero error code in unhandled scenarios

This commit is contained in:
JustArchi
2017-01-11 14:19:54 +01:00
parent 215c62b78a
commit f90c1e0f00

View File

@@ -361,6 +361,7 @@ namespace ArchiSteamFarm {
}
ArchiLogger.LogFatalException((Exception) args.ExceptionObject);
Exit(1);
}
private static void UnobservedTaskExceptionHandler(object sender, UnobservedTaskExceptionEventArgs args) {
@@ -370,6 +371,7 @@ namespace ArchiSteamFarm {
}
ArchiLogger.LogFatalException(args.Exception);
Exit(1);
}
[Flags]