Commit ea3d7e0d authored by Olivier Crête's avatar Olivier Crête

agent: Don't ask upnp to remove not yet allocated candidates

This caused a warning in Farstream tests.
parent 6be20ef4
......@@ -2965,6 +2965,9 @@ void agent_remove_local_candidate (NiceAgent *agent, NiceCandidate *candidate)
if (candidate->type != NICE_CANDIDATE_TYPE_HOST)
return;
if (nice_address_get_port (&candidate->addr) == 0)
return;
nice_address_to_string (&candidate->addr, local_ip);
gupnp_simple_igd_remove_port_local (GUPNP_SIMPLE_IGD (agent->upnp), "UDP",
......
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