projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9b6b510
)
Stop is not an unknown command
author
Marco Costalba
<mcostalba@gmail.com>
Thu, 10 Nov 2011 08:10:44 +0000 (09:10 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 10 Nov 2011 14:06:28 +0000 (15:06 +0100)
If GUI sends stop while we are waiting for
a command do not reply with a silly:
Unknown command: stop
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/uci.cpp
patch
|
blob
|
history
diff --git
a/src/uci.cpp
b/src/uci.cpp
index
b7f72d9
..
ff804f9
100644
(file)
--- a/
src/uci.cpp
+++ b/
src/uci.cpp
@@
-72,6
+72,9
@@
void uci_loop() {
if (token == "quit")
quit = true;
+ else if (token == "stop")
+ { /* avoid to reply "Unknown command: stop" */ }
+
else if (token == "go")
quit = !go(pos, is);