From d0d27cd0325843ca3a7d7a337f9db8b4ad961b9f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 7 Jul 2007 13:00:27 +0200 Subject: [PATCH] Don't double-stop the engine. --- remoteglot.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remoteglot.pl b/remoteglot.pl index 9d88db7..ed30712 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -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, -- 2.39.2