From e62e7035052ab01258d48a505185e317f9f4a26c Mon Sep 17 00:00:00 2001 From: Ambrose Li Date: Wed, 29 May 2024 14:27:05 -0400 Subject: [PATCH] least disruptive fix to the EOF problem --- clients/jack_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/jack_client.cpp b/clients/jack_client.cpp index d61fc21a..ffe207ef 100644 --- a/clients/jack_client.cpp +++ b/clients/jack_client.cpp @@ -259,7 +259,7 @@ void cliThreadProc() } catch (...) { std::cout << "ERROR: Can't set num of voices!\n"; } - } else if (kw == "quit") { + } else if (kw == "quit" || !std::cin) { shouldClose = true; } else if (kw.size() > 0) { std::cout << "ERROR: Unknown command '" << kw << "'!\n";