X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=0fd41f1a804f61c2e0582e4bb5b6118bdac831a4;hp=bc0e4529a000a363a377a8de5cbd7cdbf48ddb82;hb=7e0a437914bdad867b9cdfa61d7cba163dfc4c8b;hpb=06079f15b69b07d67b84f9fe84b028624e68e333 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;