From: Christian Grothoff Date: Thu, 6 Dec 2018 16:32:52 +0000 (+0100) Subject: completing gnunet-service-ats-new (in theory) X-Git-Tag: v0.11.0~177 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa6e0a1941f98ed90947aa5e3671438cb381995c;p=oweals%2Fgnunet.git completing gnunet-service-ats-new (in theory) --- 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);