mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 05:25:10 +00:00
Fixed: Error in epic fail handler if console input redirected
Fixes Sentry LIDARR-1YS
This commit is contained in:
parent
0bde5fd9e5
commit
ef30db58ee
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ private static void Exit(ExitCodes exitCode)
|
|||
{
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
|
||||
if (System.Console.KeyAvailable) break;
|
||||
if (!System.Console.IsInputRedirected && System.Console.KeyAvailable) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue