1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-01-01 12:54:21 +00:00

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 @@ private static void Exit(ExitCodes exitCode)
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;
}
}