1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-15 00:08:53 +00:00

Shutdown logging before Environment.Exit.

This commit is contained in:
Qstick 2017-11-16 11:53:36 -05:00
parent 5d4eb3c6d8
commit c2c43666f6

View file

@ -57,7 +57,7 @@ namespace NzbDrone.Console
private static void Exit(ExitCodes exitCode)
{
LogManager.Flush();
LogManager.Shutdown();
if (exitCode != ExitCodes.Normal)
{
@ -80,8 +80,6 @@ namespace NzbDrone.Console
System.Console.ReadLine();
}
//Need this to terminate on mono (thanks nlog)
LogManager.Configuration = null;
Environment.Exit((int)exitCode);
}
}