X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fats%2Fgnunet-service-ats-new.c;h=d3b2f1ead72c6f539de72a5254a887571c8286ab;hb=08e22453a438c8a3f6135632a6ce39239b47d9f5;hp=c4ce4e0bbf9a0d868b38af81b8de9848484044c9;hpb=630484a2b644ce3d13093d147a1877abf07fd193;p=oweals%2Fgnunet.git 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);