From aa6e0a1941f98ed90947aa5e3671438cb381995c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 6 Dec 2018 17:32:52 +0100 Subject: completing gnunet-service-ats-new (in theory) --- src/ats/gnunet-service-ats-new.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ats/gnunet-service-ats-new.c b/src/ats/gnunet-service-ats-new.c index c4ce4e0bb..d3b2f1ead 100644 --- a/src/ats/gnunet-service-ats-new.c +++ b/src/ats/gnunet-service-ats-new.c @@ -20,9 +20,6 @@ * @brief ats service * @author Matthias Wachs * @author Christian Grothoff - * - * TODO: - * - implement unloading of ATS plugins */ #include "platform.h" #include "gnunet_util_lib.h" @@ -655,6 +652,12 @@ cleanup_task (void *cls) GNUNET_NO); stats = NULL; } + if (NULL != plugin) + { + GNUNET_PLUGIN_unload (plugin_name, + plugin); + plugin = NULL; + } if (NULL != plugin_name) { GNUNET_free (plugin_name); -- cgit v1.2.3