mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
cleaned up app startup logic.
fixed update app issue.
This commit is contained in:
parent
b1e5646d7d
commit
a4a58c59f1
16 changed files with 148 additions and 54 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Host;
|
||||
|
||||
namespace NzbDrone.Console
|
||||
{
|
||||
|
@ -9,13 +10,15 @@ namespace NzbDrone.Console
|
|||
{
|
||||
try
|
||||
{
|
||||
Host.Bootstrap.Start(new StartupArguments(args));
|
||||
Bootstrap.Start(new StartupArguments(args), new ConsoleAlerts());
|
||||
}
|
||||
catch (TerminateApplicationException)
|
||||
{
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
System.Console.WriteLine("Press enter to exit...");
|
||||
System.Console.ReadLine();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue