diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-10 23:40:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-10 23:40:03 +0000 |
commit | 69710b875141c1c2cc2eacd4221356d6e457b8c6 (patch) | |
tree | 6aaad2985b8057b1eee505ebe4b511037b4a810f /src/hostlist/gnunet-daemon-hostlist.c | |
parent | 85c435c57b151d4949288572ba964f5c98f67989 (diff) | |
download | gnunet-69710b875141c1c2cc2eacd4221356d6e457b8c6.tar.gz gnunet-69710b875141c1c2cc2eacd4221356d6e457b8c6.zip |
working on hostlist
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 2c4aca6d0..e8c9bc8c7 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -118,13 +118,21 @@ core_init (void *cls, | |||
118 | static void | 118 | static void |
119 | cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 119 | cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
120 | { | 120 | { |
121 | if (bootstrapping) | ||
122 | { | ||
123 | GNUNET_HOSTLIST_client_stop (); | ||
124 | } | ||
125 | if (provide_hostlist) | ||
126 | { | ||
127 | GNUNET_HOSTLIST_server_stop (); | ||
128 | } | ||
129 | GNUNET_CORE_disconnect (core); | ||
121 | if (stats != NULL) | 130 | if (stats != NULL) |
122 | { | 131 | { |
123 | GNUNET_STATISTICS_destroy (stats, | 132 | GNUNET_STATISTICS_destroy (stats, |
124 | GNUNET_NO); | 133 | GNUNET_NO); |
125 | stats = NULL; | 134 | stats = NULL; |
126 | } | 135 | } |
127 | GNUNET_CORE_disconnect (core); | ||
128 | } | 136 | } |
129 | 137 | ||
130 | 138 | ||