flush log on Util.Fatal()

This commit is contained in:
goat 2024-04-15 00:43:06 +02:00
parent 39b6c4b701
commit 12efd9e679

View file

@ -344,8 +344,11 @@ public static class Util
_ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags); _ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags);
if (exit) if (exit)
{
Log.CloseAndFlush();
Environment.Exit(-1); Environment.Exit(-1);
} }
}
/// <summary> /// <summary>
/// Transform byte count to human readable format. /// Transform byte count to human readable format.