chore: flush the log on unhandled exceptions

This commit is contained in:
goaaats 2022-06-27 00:27:14 +02:00
parent 3369f569fb
commit 8383c7c44d
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -320,11 +320,14 @@ namespace Dalamud
config.Save();
}
Log.CloseAndFlush();
Environment.Exit(-1);
break;
default:
Log.Fatal("Unhandled SEH object on AppDomain: {Object}", args.ExceptionObject);
Log.CloseAndFlush();
Environment.Exit(-1);
break;
}
}