Commit 4ce6284c authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed a severe bug in managing resources for candidate discovery processes.

darcs-hash:20070717181305-77cd4-eea587c41258953ed5f181ec7f69fe9ec3796ae1.gz
parent 05bad78d
......@@ -559,7 +559,6 @@ priv_add_srv_rfx_candidate_discovery (NiceAgent *agent, NiceCandidate *host_cand
modified_list = g_slist_append (agent->discovery_list, cdisco);
if (modified_list) {
agent->discovery_list = modified_list;
cdisco->type = NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE;
cdisco->socket = host_candidate->sockptr->fileno;
cdisco->nicesock = host_candidate->sockptr;
......@@ -570,12 +569,9 @@ priv_add_srv_rfx_candidate_discovery (NiceAgent *agent, NiceCandidate *host_cand
cdisco->component = stream_find_component_by_id (stream, component_id);
cdisco->agent = agent;
g_debug ("Adding new srv-rflx candidate discovery %p\n", cdisco);
modified_list = g_slist_append (agent->discovery_list, cdisco);
if (modified_list) {
agent->discovery_list = modified_list;
++agent->discovery_unsched_items;
}
}
return TRUE;
}
......
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