Fix: flag that kernel streams FDs has been sent
[lttng-tools.git] / src / bin / lttng-sessiond / kernel-consumer.c
index 225e25856ab6e09d934e9bdf7f57b5e44f1496c7..9595b8f1d8531b9b510f7abd0d21d35ae03cfd21 100644 (file)
@@ -341,9 +341,6 @@ int kernel_consumer_send_session(struct consumer_socket *sock,
                if (ret < 0) {
                        goto error;
                }
-
-               /* Flag that at least the metadata has been sent to the consumer. */
-               session->consumer_fds_sent = 1;
        }
 
        /* Send channel and streams of it */
@@ -357,6 +354,7 @@ int kernel_consumer_send_session(struct consumer_socket *sock,
 
        DBG("Kernel consumer FDs of metadata and channel streams sent");
 
+       session->consumer_fds_sent = 1;
        return 0;
 
 error:
This page took 0.023483 seconds and 4 git commands to generate.