mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Shutdown logging before Environment.Exit.
This commit is contained in:
parent
ea5769fdd6
commit
e01e822394
@ -57,7 +57,7 @@ public static void Main(string[] args)
|
||||
|
||||
private static void Exit(ExitCodes exitCode)
|
||||
{
|
||||
LogManager.Flush();
|
||||
LogManager.Shutdown();
|
||||
|
||||
if (exitCode != ExitCodes.Normal)
|
||||
{
|
||||
@ -80,8 +80,6 @@ private static void Exit(ExitCodes exitCode)
|
||||
System.Console.ReadLine();
|
||||
}
|
||||
|
||||
//Need this to terminate on mono (thanks nlog)
|
||||
LogManager.Configuration = null;
|
||||
Environment.Exit((int)exitCode);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user