Fix: consumer should await for initial streams
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index 3202cd4e04c12a49a8c6db284def42ae8a08a77f..fc8728dd21da9b4d68a417323f41fbe0c7a6f225 100644 (file)
@@ -2239,7 +2239,8 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
                        /* Order is important */
                        cds_list_add_tail(&ustream->list, &ua_chan->streams.head);
                        ret = snprintf(ustream->name, sizeof(ustream->name), "%s_%u",
-                                       ua_chan->name, ua_chan->streams.count++);
+                                       ua_chan->name, ua_chan->streams.count);
+                       ua_chan->streams.count++;
                        if (ret < 0) {
                                PERROR("asprintf UST create stream");
                                /*
This page took 0.031873 seconds and 4 git commands to generate.