Fix: don't put() thread on shutdown failure
[lttng-tools.git] / src / bin / lttng-sessiond / thread.c
index 6eb5e8efb3124f67b7f1315c788162eaa67f31dd..c685442ba036e55ec24c413375d5409e50f56daf 100644 (file)
@@ -169,6 +169,7 @@ bool _lttng_thread_shutdown(struct lttng_thread *thread)
        if (ret) {
                PERROR("Failed to join \"%s\" thread", thread->name);
                result = false;
+               goto end;
        }
        /* Release the list's reference to the thread. */
        cds_list_del(&thread->node);
This page took 0.023853 seconds and 5 git commands to generate.