Fix: skip closed session on viewer listing
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index d0b8abdae177c820311219dae389258c8b8279b3..3921f251feadaee95d48a1dee7960e5cbe270980 100644 (file)
@@ -916,6 +916,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.025689 seconds and 5 git commands to generate.