X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.c;h=0b32f351814bf723710105550b6bd5b1f569501a;hb=f9dfc3d95caf3a7d927d58f252006390e168a1c2;hp=dd8d103fd1d9c2773fe9f032d1389cedd09f32d3;hpb=bb63afd9d236f8aa96935ce21f415d76452187e2;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index dd8d103fd..0b32f3518 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -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; }