Fix instant commands during think after ponder hit
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 1 Dec 2016 13:53:48 +0000 (14:53 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 1 Dec 2016 13:53:48 +0000 (14:53 +0100)
The new method of suspending command processing only after peeking at
the next command to see if it should terminate the search was not
yet working after a ponder hit turned a ponder search into thinking.

UCI2WB.c

index 5ebe5ef..7f0223e 100644 (file)
--- a/UCI2WB.c
+++ b/UCI2WB.c
@@ -488,7 +488,7 @@ GUI2Engine()
                    char *draw = drawOffer ? " draw" : ""; drawOffer = 0;\r
                    pondering = 0; pause = 2; moveNr++; startTime = GetTickCount(); // clock starts running now\r
                    EPRINT((f, "# ponderhit%s\n", draw)) fflush(toE); fflush(stdout);\r
-                   Sync(PAUSE); // block input during thinking\r
+                   think = 2; // request blocking input during thinking\r
                    goto nomove;\r
                }\r
                StopPonder(1); searching = 0;\r