Fix: Wait for in-flight data before closing a stream
[lttng-tools.git] / src / bin / lttng-relayd / ctf-trace.c
index 9c5ae45ded0083806885e71c5a497d64b4af1a39..d0665b243bc64c07c28a545e3ebbdb0af41488c1 100644 (file)
@@ -182,9 +182,10 @@ int ctf_trace_close(struct ctf_trace *trace)
        cds_list_for_each_entry_rcu(stream, &trace->stream_list,
                        stream_node) {
                /*
-                * Close the stream.
+                * Close stream since the connection owning the trace is being
+                * torn down.
                 */
-               stream_close(stream);
+               try_stream_close(stream);
        }
        rcu_read_unlock();
        /*
This page took 0.025126 seconds and 4 git commands to generate.