Be more aggressive about clearing out the UCI info. This fixes an issue
[remoteglot] / remoteglot.pl
index 1561ac3..2c4bb9e 100755 (executable)
@@ -107,6 +107,7 @@ while (1) {
                        uciprint("position fen $fen");
                        uciprint("go infinite");
 
+                       %uciinfo = ();
                        $last_move = time;
 
                        # 
@@ -478,6 +479,7 @@ sub output_screen {
                }
        };
        if ($@) {
+               %uciinfo = ();
                return;
        }