X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=0fd41f1a804f61c2e0582e4bb5b6118bdac831a4;hb=0a77380719e83eeaeb987821d6d31e30a28a98cb;hp=bc0e4529a000a363a377a8de5cbd7cdbf48ddb82;hpb=44248a33d18f62c52a8579ea6c232279833bb99a;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index bc0e4529a..0fd41f1a8 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -835,6 +835,11 @@ int viewer_list_sessions(struct relay_connection *conn) health_code_update(); + if (session->connection_closed) { + /* Skip closed session */ + continue; + } + if (count >= buf_count) { struct lttng_viewer_session *newbuf; uint32_t new_buf_count = buf_count << 1;