summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/UCI.cpp3
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) {