Fix: Wait for in-flight data before closing a stream
[lttng-tools.git] / src / bin / lttng-relayd / ctf-trace.c
index d965cec8caa72aa9dcf771282f399a63868a27ab..7c882620e36fb11d8e2030b724df7ac64b4b2f89 100644 (file)
@@ -183,9 +183,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.023031 seconds and 4 git commands to generate.