Fix pause in ponder-off games
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 9 Dec 2012 17:50:41 +0000 (18:50 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 9 Dec 2012 17:50:41 +0000 (18:50 +0100)
UCI2WB.c

index 029b34b..cf50631 100644 (file)
--- a/UCI2WB.c
+++ b/UCI2WB.c
@@ -386,7 +386,8 @@ GUI2Engine()
        }\r
        else if(!strcmp(command, "pause")) {\r
            if(computer == stm) myTime -= GetTickCount() - startTime;\r
-           suspended = 1 + pondering, StopPonder(1); // remember if we were pondering, and stop search ignoring bestmove\r
+           suspended = 1 + pondering; // remember if we were pondering, and stop search ignoring bestmove\r
+           StopPonder(pondering || computer == stm);\r
        }\r
        else if(!strcmp(command, "resume")) {\r
            if(suspended == 2) StartPonder(); // restart interrupted ponder search\r