gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9202 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r9202 - gnunet/src/transport
Date: Mon, 19 Oct 2009 06:29:05 -0600

Author: grothoff
Date: 2009-10-19 06:29:04 -0600 (Mon, 19 Oct 2009)
New Revision: 9202

Modified:
   gnunet/src/transport/test_plugin_transport.c
Log:
fix

Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c        2009-10-19 12:28:50 UTC 
(rev 9201)
+++ gnunet/src/transport/test_plugin_transport.c        2009-10-19 12:29:04 UTC 
(rev 9202)
@@ -145,6 +145,15 @@
 }
 
 
+static void
+unload_task (void *cls,
+            const struct GNUNET_SCHEDULER_TaskContext *tc)
+{
+  struct GNUNET_CONFIGURATION_Handle *cfg = cls;
+  unload_plugins (NULL, cfg);
+}
+
+
 static GNUNET_SCHEDULER_TaskIdentifier validation_timeout_task;
 
 
@@ -169,7 +178,11 @@
   /* Sailor: if this is the last test, calling this function
      here will end the process. */
   ok = 0; /* if the last test succeeded, report success */
-  unload_plugins (NULL, cfg);
+  GNUNET_SCHEDULER_add_continuation (sched,
+                                    GNUNET_NO,
+                                    &unload_task,
+                                    (void*) cfg,
+                                    GNUNET_SCHEDULER_REASON_PREREQ_DONE);
 }
 
 
@@ -309,6 +322,7 @@
   GNUNET_asprintf (&libname, "libgnunet_plugin_transport_tcp");
 
   api = GNUNET_PLUGIN_load(libname, &env);
+  GNUNET_free (libname);
   if (api == NULL)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]