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:
parent
a5d695ec92
commit
6057b27dc8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue