From e95c25e12c6f8693c400ba7272317628a0c79ef2 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 17 May 2010 14:32:31 +0000 Subject: --- src/hostlist/gnunet-daemon-hostlist.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/hostlist/gnunet-daemon-hostlist.c') diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 8ddca00c7..f25e4f6ca 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c @@ -74,6 +74,11 @@ static int bootstrapping; */ static int learning; +/** + * Our configuration. + */ +static const struct GNUNET_CONFIGURATION_Handle *cfg; + /** * Statistics handle. */ @@ -251,6 +256,15 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_NO); stats = NULL; } + if (cfg != NULL) + { + GNUNET_CONFIGURATION_destroy(cfg); + } + if (tc->sched!=NULL) + { + GNUNET_SCHEDULER_shutdown (tc->sched); + + } } /** @@ -297,6 +311,9 @@ run (void *cls, _("None of the functions for the hostlist daemon were enabled. I have no reason to run!\n")); return; } + + + stats = GNUNET_STATISTICS_create (sched, "hostlist", cfg); core = GNUNET_CORE_connect (sched, cfg, -- cgit v1.2.3