Fix: missing health exit in registration app thread
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 8a1f753114bfe3bfaa8cd5629ea5c7e199c29aab..cc93da881906fb459b4199e7625aef279928c8db 100644 (file)
@@ -1513,7 +1513,6 @@ error:
                health_error(&health_thread_app_reg);
                ERR("Health error occurred in %s", __func__);
        }
-       health_exit(&health_thread_app_reg);
 
        /* Notify that the registration thread is gone */
        notify_ust_apps(0);
@@ -1538,6 +1537,7 @@ error_poll_add:
 error_listen:
 error_create_poll:
        DBG("UST Registration thread cleanup complete");
+       health_exit(&health_thread_app_reg);
 
        return NULL;
 }
This page took 0.022969 seconds and 4 git commands to generate.