From a4d8b4cc5381955d2c0d1ba54f82d3470193eb72 Mon Sep 17 00:00:00 2001 From: Ambrose Li Date: Sun, 26 May 2024 22:09:49 -0400 Subject: [PATCH] Fixes the infinite-loop-on-eof problem, but not in an ideal way --- clients/jack_client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/jack_client.cpp b/clients/jack_client.cpp index d61fc21a8..cefece872 100644 --- a/clients/jack_client.cpp +++ b/clients/jack_client.cpp @@ -259,6 +259,8 @@ void cliThreadProc() } catch (...) { std::cout << "ERROR: Can't set num of voices!\n"; } + } else if (!std::cin) { + shouldClose = true; } else if (kw == "quit") { shouldClose = true; } else if (kw.size() > 0) {