X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=468a7e58710dc7fcb18424fbb4d4f063ad623a21;hb=d3aac146d0800fe9820d51e5b9fa52e7543c1237;hp=c60f7e4c9c4db0f3d00dff773b2c537b0cc4bd43;hpb=6347a8b5c62a93c52cb11a68598068abb85ad930;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index c60f7e4c9..468a7e587 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1206,7 +1206,7 @@ static int check_index_status(struct relay_viewer_stream *vstream, index->status = htobe32(LTTNG_VIEWER_INDEX_INACTIVE); index->timestamp_end = htobe64(rstream->beacon_ts_end); goto index_ready; - } else if (rstream->total_index_received <= vstream->last_sent_index + } else if (rstream->total_index_received < vstream->last_sent_index && !vstream->close_write_flag) { /* * Reader and writer are working in the same tracefile, so we care