From cfe936fb1e0d6bf458917b51c62b32d72b799072 Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Tue, 16 Mar 2010 22:21:19 +0100 Subject: [PATCH] Distributed engine: avoid infinite loop resending command history. --- uct/uct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uct/uct.c b/uct/uct.c index 6ddf1ed..7751b7f 100644 --- a/uct/uct.c +++ b/uct/uct.c @@ -154,7 +154,8 @@ uct_notify(struct engine *e, struct board *b, int id, char *cmd, char *args, cha /* Force resending the whole command history if we are out of sync * but do it only once, not if already getting the history. */ - if ((move_number(id) != b->moves || !board_resized) && !reply_disabled(id)) { + if ((move_number(id) != b->moves || !board_resized) + && !reply_disabled(id) && !is_reset(cmd)) { if (UDEBUGL(0)) fprintf(stderr, "Out of sync, id %d, move %d\n", id, b->moves); static char buf[128]; -- 2.11.4.GIT