protocol: Fixed wrong ACK wait loop

This commit is contained in:
Snaipe 2016-05-06 21:12:50 +02:00
parent 9fb27d0c41
commit 40db697600

View file

@ -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);