-do not leave PPT timeout tasks behind
authorChristian Grothoff <christian@grothoff.org>
Wed, 7 Oct 2015 09:20:44 +0000 (09:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 7 Oct 2015 09:20:44 +0000 (09:20 +0000)
src/transport/plugin_transport_udp.c

index c7ee5b6e57782974d7f79466f1dba04eca0ac3ac..7c36e172c79f5cea40a10ebdeb13ff45226c8c03 100644 (file)
@@ -3889,6 +3889,11 @@ libgnunet_plugin_transport_udp_done (void *cls)
                                  plugin->ppc_dll_tail,
                                  cur);
     GNUNET_RESOLVER_request_cancel (cur->resolver_handle);
+    if (NULL != cur->timeout_task)
+    {
+      GNUNET_SCHEDULER_cancel (cur->timeout_task);
+      cur->timeout_task = NULL;
+    }
     GNUNET_free (cur);
   }
   GNUNET_free (plugin);