Fixed: Error in epic fail handler if console input redirected

Fixes Sentry Radarr-3AK
This commit is contained in:
ta264
2019-12-18 21:14:19 +00:00
committed by Qstick
parent a5d695ec92
commit 6057b27dc8

View File

@@ -87,7 +87,7 @@ namespace NzbDrone.Console
for (int i = 0; i < 3600; i++)
{
System.Threading.Thread.Sleep(1000);
if (System.Console.KeyAvailable) break;
if (!System.Console.IsInputRedirected && System.Console.KeyAvailable) break;
}
}