diff --git a/softsynth.c b/softsynth.c index 9e700c5..3eb6c7e 100644 --- a/softsynth.c +++ b/softsynth.c @@ -156,6 +156,9 @@ void *softsynth_thread(void *arg) break; } + if (FD_ISSET(terminalFD, &set)) + break; + if (!FD_ISSET(softFD, &set)) continue;