]> git.sesse.net Git - remoteglot/commitdiff
Be more aggressive about clearing out the UCI info. This fixes an issue
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 2 Jul 2007 15:44:58 +0000 (17:44 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 2 Jul 2007 15:44:58 +0000 (17:44 +0200)
in multi-PV analysis where suddenly fewer than the maximum lines are
reported, and remoteglot just freezes because the other PVs are invalid.

remoteglot.pl

index 1561ac338d0a615eef815bc0e324ea6e3b736ef2..2c4bb9e8247be699bbd11cc21a5fd326a6389232 100755 (executable)
@@ -107,6 +107,7 @@ while (1) {
                        uciprint("position fen $fen");
                        uciprint("go infinite");
 
                        uciprint("position fen $fen");
                        uciprint("go infinite");
 
+                       %uciinfo = ();
                        $last_move = time;
 
                        # 
                        $last_move = time;
 
                        # 
@@ -478,6 +479,7 @@ sub output_screen {
                }
        };
        if ($@) {
                }
        };
        if ($@) {
+               %uciinfo = ();
                return;
        }
 
                return;
        }