]> git.sesse.net Git - remoteglot/commitdiff
Don't double-stop the engine.
authorSteinar H. Gunderson <sesse@debian.org>
Sat, 7 Jul 2007 11:00:27 +0000 (13:00 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Sat, 7 Jul 2007 11:00:27 +0000 (13:00 +0200)
remoteglot.pl

index 9d88db75727817d0324f7c315e301e2f5b95fa22..ed3071284ce5fc47cdc938b6f2ca70fa7393b4fc 100755 (executable)
@@ -116,7 +116,9 @@ while (1) {
                        # if we're already thinking on something, stop and wait for the engine
                        # to approve
                        if (defined($pos_calculating)) {
-                               uciprint("stop");
+                               if (!defined($pos_waiting)) {
+                                       uciprint("stop");
+                               }
                                $pos_waiting = $pos;
                        } else {
                                # it's wrong just to give the FEN (the move history is useful,