cleaned up app startup logic.

fixed update app issue.
This commit is contained in:
kay.one 2013-08-15 19:20:54 -07:00
commit a4a58c59f1
16 changed files with 148 additions and 54 deletions

View file

@ -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();
}