From 506899730a17675b4902b1160a2a2ce59bf68fe4 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 28 Jan 2013 19:42:08 -0800 Subject: [PATCH] CPU usage fail Fixed: Running NzbDrone without a console should no longer cause excessive CPU usage --- NzbDrone.Common/ConsoleProvider.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NzbDrone.Common/ConsoleProvider.cs b/NzbDrone.Common/ConsoleProvider.cs index b942e612c..3a36b83e1 100644 --- a/NzbDrone.Common/ConsoleProvider.cs +++ b/NzbDrone.Common/ConsoleProvider.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Threading; namespace NzbDrone.Common { @@ -10,6 +11,7 @@ namespace NzbDrone.Common while (true) { Console.ReadLine(); + Thread.Sleep(250); } }