X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.c;h=d1417efd76e52409be5573497d3ad0010b849ad9;hp=06bf0f4f386832a199a199862e2416301d42e521;hb=e09272cd700e3a0a59100cdf6c3ad2332341109c;hpb=b64403e3e8962444b688fa369338f47c86003b21 diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 06bf0f4f3..d1417efd7 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -522,6 +522,12 @@ static int send_consumer_relayd_socket(int domain, struct ltt_session *session, int ret; struct lttcomm_sock *sock = NULL; + /* Don't resend the sockets to the consumer. */ + if (consumer->dst.net.relayd_socks_sent) { + ret = LTTNG_OK; + goto error; + } + /* Set the network sequence index if not set. */ if (consumer->net_seq_index == -1) { /* @@ -566,6 +572,7 @@ close_sock: lttcomm_destroy_sock(sock); } +error: return ret; }