From 95e2cbb5727a164efb3dae6708389dc04d09b89b Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Wed, 31 Mar 2010 17:17:32 +0200 Subject: [PATCH] Distributed engine: force waiting for a new command after a successful reply is received. --- distributed/distributed.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distributed/distributed.c b/distributed/distributed.c index 0edcc8f..eb22093 100644 --- a/distributed/distributed.c +++ b/distributed/distributed.c @@ -267,6 +267,11 @@ slave_loop(FILE *f, struct in_addr client, char *reply_buf, bool resend) last_reply_id = reply_id; pthread_cond_signal(&reply_cond); + + /* Force waiting for a new command. The next genmoves + * stats we will send must include those just received + * (this assumed by the slave). */ + last_cmd_sent = cmd_count; continue; } resend = true; -- 2.11.4.GIT