1
0
Fork 0
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:
ta264 2019-12-18 21:14:19 +00:00 committed by Qstick
parent 8a20c0fa83
commit e2c1d57d8c

View file

@ -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;
}
}