summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-09-30 22:49:16 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-10-09 16:26:07 -0400
commit164105a573ba38fcd54d14c3b29f50cb2ed8210f (patch)
treef78e93042968d00009feb52aec43d43af07acbbe /agent
parentf4be0b2349786c6cf4082a8c6e51149cd7b4e0a6 (diff)
downloadlibnice-164105a573ba38fcd54d14c3b29f50cb2ed8210f.tar.gz
agent: Ignore UPnP mappings after the UPnP discovery has finished
Diffstat (limited to 'agent')
-rw-r--r--agent/agent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 156a0c4..97f52c9 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -2502,6 +2502,9 @@ static void _upnp_mapped_external_port (GUPnPSimpleIgd *self, gchar *proto,
agent_lock();
+ if (agent->upnp_timer_source == NULL)
+ goto end;
+
nice_debug ("Agent %p : Successfully mapped %s:%d to %s:%d", agent, local_ip,
local_port, external_ip, external_port);