mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
fixed NzbDrone using 100% cpu when console not available.
This commit is contained in:
parent
e377e02db4
commit
75a46a3abe
9 changed files with 39 additions and 31 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Host;
|
||||
|
||||
|
@ -12,15 +13,19 @@ namespace NzbDrone.Console
|
|||
{
|
||||
Bootstrap.Start(new StartupArguments(args), new ConsoleAlerts());
|
||||
}
|
||||
catch (TerminateApplicationException)
|
||||
catch (TerminateApplicationException)
|
||||
{
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.Console.WriteLine(e.ToString());
|
||||
}
|
||||
System.Console.WriteLine("Press enter to exit...");
|
||||
System.Console.ReadLine();
|
||||
|
||||
if (ConsoleService.IsConsoleAvailable)
|
||||
{
|
||||
System.Console.WriteLine("Press enter to exit...");
|
||||
System.Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue