Fix: don't expose empty streams
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index 2972a500f13f860f21b7e8422bdcbc2e0dd17c31..aa0586814e6ba55adeb6c2b35d5c31f1789bcc51 100644 (file)
@@ -313,6 +313,12 @@ int make_viewer_streams(struct relay_session *session,
                        if (!stream->published) {
                                goto next;
                        }
+                       /*
+                        * Stream has no data, don't consider it yet.
+                        */
+                       if (stream->prev_seq == -1ULL) {
+                               goto next;
+                       }
                        vstream = viewer_stream_get_by_id(stream->stream_handle);
                        if (!vstream) {
                                vstream = viewer_stream_create(stream, seek_t);
This page took 0.030829 seconds and 4 git commands to generate.