Commit 1ae8e58d authored by Youness Alaoui's avatar Youness Alaoui

also add the tcp socket to the list of sockets so it gets freed and also gets...

also add the tcp socket to the list of sockets so it gets freed and also gets attached if the context is added after the gahter is made
parent 99e8a581
......@@ -810,6 +810,11 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
agent_attach_stream_component_socket (agent, stream,
component, cdisco->nicesock);
socket_modified_list = g_slist_append (component->sockets, cdisco->nicesock);
if (socket_modified_list) {
/* success: store a pointer to the sockaddr */
component->sockets = socket_modified_list;
}
}
cdisco->turn = turn;
cdisco->server = turn->server;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment