From: H.G.Muller Date: Thu, 1 Dec 2016 13:53:48 +0000 (+0100) Subject: Fix instant commands during think after ponder hit X-Git-Tag: v4.0~46 X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=commitdiff_plain;h=04a35064522994a86ff436cc1705f0ae768bb23f Fix instant commands during think after ponder hit 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. --- diff --git a/UCI2WB.c b/UCI2WB.c index 5ebe5ef..7f0223e 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -488,7 +488,7 @@ GUI2Engine() char *draw = drawOffer ? " draw" : ""; drawOffer = 0; pondering = 0; pause = 2; moveNr++; startTime = GetTickCount(); // clock starts running now EPRINT((f, "# ponderhit%s\n", draw)) fflush(toE); fflush(stdout); - Sync(PAUSE); // block input during thinking + think = 2; // request blocking input during thinking goto nomove; } StopPonder(1); searching = 0;