mirror of
https://github.com/Readarr/Readarr
synced 2026-01-01 21:24:52 +01:00
Shutdown logging before Environment.Exit.
This commit is contained in:
parent
5d4eb3c6d8
commit
c2c43666f6
1 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue