From 40db6976004d8d63f7ef7bb46dd61f4c43763b6f Mon Sep 17 00:00:00 2001 From: Snaipe Date: Fri, 6 May 2016 21:12:50 +0200 Subject: [PATCH] protocol: Fixed wrong ACK wait loop --- src/protocol/messages.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/messages.c b/src/protocol/messages.c index 295d874..b3ddbec 100644 --- a/src/protocol/messages.c +++ b/src/protocol/messages.c @@ -102,7 +102,8 @@ void cr_send_to_runner(const criterion_protocol_msg *message) { criterion_perror("Could not read ack: %s.\n", nn_strerror(errno)); abort(); } - } while (read > 0); + break; + } while (true); criterion_protocol_ack ack; pb_istream_t stream = pb_istream_from_buffer(buf, read);