Fix: flag that kernel streams FDs has been sent
[lttng-tools.git] / src / bin / lttng-sessiond / kernel-consumer.c
index 38820af3811e1893ba8a5f6c6109c31599fb7838..89c8760d2673bbda82f20ef2b308b95f7ec3d17f 100644 (file)
@@ -378,9 +378,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 */
@@ -404,6 +401,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.023088 seconds and 4 git commands to generate.