Fix: wrong check on session started on stop command
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index dd8d103fd1d9c2773fe9f032d1389cedd09f32d3..0b32f351814bf723710105550b6bd5b1f569501a 100644 (file)
@@ -2402,7 +2402,7 @@ int ust_app_stop_trace(struct ltt_ust_session *usess, struct ust_app *app)
         * from either the application manager thread or the command thread. Simply
         * indicate that this is a stop error.
         */
-       if (ua_sess->started == 1) {
+       if (!ua_sess->started) {
                goto error_rcu_unlock;
        }
 
This page took 0.025763 seconds and 5 git commands to generate.