remove readline to exit app.

This commit is contained in:
Keivan Beigi 2013-08-20 15:48:10 -07:00
parent 75a46a3abe
commit 43baa2b86e
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
using System; using System;
using NzbDrone.Common; using System.Threading;
using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Host; using NzbDrone.Host;
@ -19,13 +19,13 @@ namespace NzbDrone.Console
catch (Exception e) catch (Exception e)
{ {
System.Console.WriteLine(e.ToString()); System.Console.WriteLine(e.ToString());
}
if (ConsoleService.IsConsoleAvailable)
{
System.Console.WriteLine("Press enter to exit...");
System.Console.ReadLine(); System.Console.ReadLine();
} }
while (true)
{
Thread.Sleep(10 * 60);
}
} }
} }
} }