diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-27 19:51:48 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-27 19:51:48 +0100 |
| commit | e5e820575894e31cd4da0c45a7f460fc47bcc9d3 (patch) | |
| tree | 09a08561865c8f156dcf1b29317bb329bed90ca5 | |
| parent | 7be95e7bcd38b506afbb2e8a0c59cf2f5ded4f3a (diff) | |
Debug quit() command
| -rw-r--r-- | src/UCI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/UCI.cpp b/src/UCI.cpp index ebb8eb5..502a42d 100644 --- a/src/UCI.cpp +++ b/src/UCI.cpp @@ -238,7 +238,8 @@ void UCI::debug(bool d) { } void UCI::ponderhit() { Command("ponderhit"); } void UCI::quit() { - p->Write(cmd + "\n"); // Note that we should no do a sync! + // Note that calling Command() will fail (because of Sync()) + p->Write("quit\n"); } void UCI::ucinewgame() { Command("ucinewgame"); } void UCI::position(std::string fen, std::string moves) { |
