agent: Ignore UPnP mappings after the UPnP discovery has finished
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 1 Oct 2014 02:49:16 +0000 (22:49 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 9 Oct 2014 20:26:07 +0000 (16:26 -0400)
agent/agent.c

index 156a0c4..97f52c9 100644 (file)
@@ -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);