Skip to content

Commit 502012e

Browse files
Altered to allow for multiple key presses and removed debugging code
1 parent f598f7f commit 502012e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tools/dotnet-counters/CounterMonitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ private Task<int> Start()
841841
while(!_shouldExit.Task.Wait(250))
842842
{
843843
HandleBufferedEvents();
844-
if (Console.KeyAvailable)
844+
if (!Console.IsInputRedirected && Console.KeyAvailable)
845845
{
846846
ConsoleKey cmd = Console.ReadKey(true).Key;
847847
if (cmd == ConsoleKey.Q)

0 commit comments

Comments
 (0)