X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=cc93da881906fb459b4199e7625aef279928c8db;hp=8a1f753114bfe3bfaa8cd5629ea5c7e199c29aab;hb=152413a01067652b58ec4e682c598396af37a01c;hpb=f50f23d9f80ed9fae7fe5c49aee65e813e0031c8 diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 8a1f75311..cc93da881 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; }