diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-09-30 22:49:16 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-10-09 16:26:07 -0400 |
commit | 164105a573ba38fcd54d14c3b29f50cb2ed8210f (patch) | |
tree | f78e93042968d00009feb52aec43d43af07acbbe /agent | |
parent | f4be0b2349786c6cf4082a8c6e51149cd7b4e0a6 (diff) | |
download | libnice-164105a573ba38fcd54d14c3b29f50cb2ed8210f.tar.gz |
agent: Ignore UPnP mappings after the UPnP discovery has finished
Diffstat (limited to 'agent')
-rw-r--r-- | agent/agent.c | 3 |
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); |