mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-18 21:35:27 -04:00
Fix error in epic fail handler if console input redirected
Eliminates an unhandled InvalidOperationException and loop causing thousands of sentry errors
This commit is contained in:
@@ -117,7 +117,7 @@ namespace NzbDrone.Console
|
||||
{
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
|
||||
if (System.Console.KeyAvailable)
|
||||
if (!System.Console.IsInputRedirected && System.Console.KeyAvailable)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user