DBG2("Channel UST %s already disabled", uchan->name);
goto end;
}
+
+ uchan->enabled = 0;
+
+ /*
+ * If session is inactive we don't notify the tracer right away. We
+ * wait for the next synchronization.
+ */
if (!usess->active) {
goto end;
}
goto error;
}
- uchan->enabled = 0;
-
DBG2("Channel %s disabled successfully", uchan->name);
return LTTNG_OK;