Fix: skip closed session on viewer listing
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index 7c812fe9348dc0f093fb77930256f54669125fbf..a94afa0b046f032313f7662f96ef2f2e4e9fb42c 100644 (file)
@@ -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;
This page took 0.022984 seconds and 4 git commands to generate.