From 60e5773153d729a85dc897ace6ce7af0cd391bdd Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 7 May 2010 12:37:58 +0000 Subject: [PATCH] --- src/transport/test_plugin_transport_http.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 35666ece1..854cfe016 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -162,9 +162,11 @@ setup_plugin_environment () static void shutdown_clean () { - GNUNET_assert (NULL == - GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_http", - api)); + if (ti_check_stat != GNUNET_SCHEDULER_NO_TASK) + GNUNET_SCHEDULER_cancel(sched,ti_check_stat); + ti_check_stat = GNUNET_SCHEDULER_NO_TASK; + + GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_http", api)); GNUNET_SCHEDULER_shutdown(sched); return; } @@ -217,13 +219,13 @@ run (void *cls, setup_plugin_environment (); GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin\n")); GNUNET_asprintf (&libname, "libgnunet_plugin_transport_http"); - api = GNUNET_PLUGIN_load (libname, &env); GNUNET_free (libname); if (api == NULL) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Failed to load transport plugin for udp\n")); + fail = GNUNET_YES; return; } -- 2.25.1