#include <string.h>
#include <unistd.h>
-#include <common/lttngerr.h>
#include <common/common.h>
+#include <common/consumer.h>
#include <common/defaults.h>
#include <common/sessiond-comm/sessiond-comm.h>
-#include <common/consumer.h>
#include "ust-consumer.h"
rcu_read_lock();
cds_lfht_for_each_entry(usess->channels->ht, &iter.iter, ua_chan,
node.node) {
+ /*
+ * Indicate that the channel was not created on the tracer side so skip
+ * sending unexisting streams.
+ */
+ if (ua_chan->obj == NULL) {
+ continue;
+ }
+
ret = send_channel_streams(sock, ua_chan, usess->uid, usess->gid);
if (ret < 0) {
rcu_read_unlock();