forked from sim0n00ps/OF-DL
Fix for logging in ExitHelper
This commit is contained in:
parent
9336ee0191
commit
24b34bfe48
@ -11,11 +11,11 @@ public class ExitHelper(IDownloadEventHandler eventHandler)
|
||||
{
|
||||
Console.WriteLine();
|
||||
|
||||
_eventHandler?.OnMessage("Exiting run with Code '{exitCode}'..");
|
||||
_eventHandler?.OnMessage($"Exiting run with Code '{exitCode}'..");
|
||||
|
||||
Log.CloseAndFlush();
|
||||
Log.CloseAndFlush();
|
||||
Task.Delay(5000).GetAwaiter().GetResult();
|
||||
Task.Delay(3000).GetAwaiter().GetResult();
|
||||
|
||||
Environment.Exit(exitCode);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user