Skip to content

Commit e62e703

Browse files
aclipaulfd
authored andcommitted
least disruptive fix to the EOF problem
1 parent d885ee5 commit e62e703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/jack_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void cliThreadProc()
259259
} catch (...) {
260260
std::cout << "ERROR: Can't set num of voices!\n";
261261
}
262-
} else if (kw == "quit") {
262+
} else if (kw == "quit" || !std::cin) {
263263
shouldClose = true;
264264
} else if (kw.size() > 0) {
265265
std::cout << "ERROR: Unknown command '" << kw << "'!\n";

0 commit comments

Comments
 (0)