Fix: destroy command: put consumer output after destroy notifier
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 9072a2ecbead28a7b1c1e990d9d827f009e8af89..7fd4332ec12d3bb9f1c9643275c16d1769ecb0cc 100644 (file)
@@ -811,7 +811,6 @@ void session_release(struct urcu_ref *ref)
 
        DBG("Destroying session %s (id %" PRIu64 ")", session->name, session->id);
 
-       consumer_output_put(session->consumer);
        snapshot_destroy(&session->snapshot);
 
        pthread_mutex_destroy(&session->lock);
@@ -823,6 +822,7 @@ void session_release(struct urcu_ref *ref)
        }
        session_notify_destruction(session);
 
+       consumer_output_put(session->consumer);
        kernel_free_session(ksess);
        session->kernel_session = NULL;
        if (usess) {
This page took 0.024019 seconds and 4 git commands to generate.