X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=a94afa0b046f032313f7662f96ef2f2e4e9fb42c;hb=baa8150c013cda7f44bb7d82b44242f4030b472b;hp=7c812fe9348dc0f093fb77930256f54669125fbf;hpb=6d801f10eebba594c3f796f5dabc752af58aa622;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 7c812fe93..a94afa0b0 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -834,6 +834,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;