least disruptive fix to the EOF problem

This commit is contained in:
Ambrose Li 2024-05-29 14:27:05 -04:00 committed by Paul Ferrand
parent d885ee5043
commit e62e703505

View file

@ -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";