Commit db2e674f authored by Youness Alaoui's avatar Youness Alaoui

Do not signal gathering-done if UPnP is still waiting for an answer

parent 7ec32a50
...@@ -1873,12 +1873,12 @@ nice_agent_gather_candidates ( ...@@ -1873,12 +1873,12 @@ nice_agent_gather_candidates (
} }
/* note: no async discoveries pending, signal that we are ready */ /* note: no async discoveries pending, signal that we are ready */
if (agent->discovery_unsched_items == 0) { if (agent->discovery_unsched_items == 0 &&
g_slist_length (agent->upnp_mapping) == 0) {
nice_debug ("Agent %p: Candidate gathering FINISHED, no scheduled items.", nice_debug ("Agent %p: Candidate gathering FINISHED, no scheduled items.",
agent); agent);
agent_gathering_done (agent); agent_gathering_done (agent);
} else { } else if (agent->discovery_unsched_items) {
g_assert (agent->discovery_list);
discovery_schedule (agent); discovery_schedule (agent);
} }
......
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