diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-24 13:01:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-24 13:01:06 +0000 |
commit | d8d59fb0a0fbaf640ae1c5fd0ad750dd3b8be1fc (patch) | |
tree | 1191c16dc2009a0868964863729cf61482de2dfb /src/hostlist | |
parent | 9b284eab1acb9eb220e00aefabf395e1284bdc62 (diff) | |
download | gnunet-d8d59fb0a0fbaf640ae1c5fd0ad750dd3b8be1fc.tar.gz gnunet-d8d59fb0a0fbaf640ae1c5fd0ad750dd3b8be1fc.zip |
-fix
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/hostlist-client.c | 1 | ||||
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 5398e9aa5..7f285f6cf 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -1437,6 +1437,7 @@ GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, | |||
1437 | char *filename; | 1437 | char *filename; |
1438 | int result; | 1438 | int result; |
1439 | 1439 | ||
1440 | GNUNET_assert (NULL != st); | ||
1440 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 1441 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
1441 | { | 1442 | { |
1442 | GNUNET_break (0); | 1443 | GNUNET_break (0); |
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index 46dd86600..409a3ed70 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -191,6 +191,14 @@ process_downloads_done (void *cls, int success) | |||
191 | } | 191 | } |
192 | 192 | ||
193 | 193 | ||
194 | static void | ||
195 | do_shutdown (void *cls, | ||
196 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
197 | { | ||
198 | shutdown_testcase (); | ||
199 | } | ||
200 | |||
201 | |||
194 | static int | 202 | static int |
195 | process_downloads (void *cls, const char *subsystem, const char *name, | 203 | process_downloads (void *cls, const char *subsystem, const char *name, |
196 | uint64_t value, int is_persistent) | 204 | uint64_t value, int is_persistent) |
@@ -201,7 +209,9 @@ process_downloads (void *cls, const char *subsystem, const char *name, | |||
201 | "Peer has successfully downloaded advertised URI\n"); | 209 | "Peer has successfully downloaded advertised URI\n"); |
202 | learned_hostlist_downloaded = GNUNET_YES; | 210 | learned_hostlist_downloaded = GNUNET_YES; |
203 | if ((learned_hostlist_saved == GNUNET_YES) && (adv_sent == GNUNET_YES)) | 211 | if ((learned_hostlist_saved == GNUNET_YES) && (adv_sent == GNUNET_YES)) |
204 | shutdown_testcase (); | 212 | { |
213 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); | ||
214 | } | ||
205 | } | 215 | } |
206 | return GNUNET_OK; | 216 | return GNUNET_OK; |
207 | } | 217 | } |