diff --git a/src/switch_console.c b/src/switch_console.c index 5a071a18f1..547530643b 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -878,6 +878,14 @@ SWITCH_DECLARE(void) switch_console_loop(void) break; } + if (FD_ISSET(fileno(stdin), &efds)) { + continue; + } + + if (!FD_ISSET(fileno(stdin), &rfds)) { + activity = 0; + } + if (activity == 0) { fflush(stdout); continue;