projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be20ef
)
agent: Don't ask upnp to remove not yet allocated candidates
author
Olivier Crête
<olivier.crete@collabora.com>
Tue, 21 Jun 2016 20:41:50 +0000
(16:41 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Tue, 21 Jun 2016 20:41:50 +0000
(16:41 -0400)
This caused a warning in Farstream tests.
agent/agent.c
patch
|
blob
|
history
diff --git
a/agent/agent.c
b/agent/agent.c
index
08a2387
..
d819d27
100644
(file)
--- a/
agent/agent.c
+++ b/
agent/agent.c
@@
-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",