diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-01 13:48:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-01 13:48:53 +0000 |
commit | 4bbfc155d9ee9f06cfa9b022382745b81b7cf76f (patch) | |
tree | 257fcec2267fdf86152488eb29d6ab0e25915edd /src/hostlist | |
parent | 11f124c5f14462b21b91065fc133518d78b2b70a (diff) | |
download | gnunet-4bbfc155d9ee9f06cfa9b022382745b81b7cf76f.tar.gz gnunet-4bbfc155d9ee9f06cfa9b022382745b81b7cf76f.zip |
-fix #2393
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index 5fcbd538b..58c92d3d6 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -235,7 +235,9 @@ process_uris_recv (void *cls, const char *subsystem, const char *name, | |||
235 | "Peer has successfully saved advertised URI\n"); | 235 | "Peer has successfully saved advertised URI\n"); |
236 | learned_hostlist_saved = GNUNET_YES; | 236 | learned_hostlist_saved = GNUNET_YES; |
237 | if ((learned_hostlist_downloaded == GNUNET_YES) && (adv_sent == GNUNET_YES)) | 237 | if ((learned_hostlist_downloaded == GNUNET_YES) && (adv_sent == GNUNET_YES)) |
238 | shutdown_testcase (); | 238 | { |
239 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); | ||
240 | } | ||
239 | } | 241 | } |
240 | return GNUNET_OK; | 242 | return GNUNET_OK; |
241 | } | 243 | } |
@@ -259,7 +261,9 @@ process_adv_sent (void *cls, const char *subsystem, const char *name, | |||
259 | adv_sent = GNUNET_YES; | 261 | adv_sent = GNUNET_YES; |
260 | if ((learned_hostlist_downloaded == GNUNET_YES) && | 262 | if ((learned_hostlist_downloaded == GNUNET_YES) && |
261 | (learned_hostlist_saved == GNUNET_YES)) | 263 | (learned_hostlist_saved == GNUNET_YES)) |
262 | shutdown_testcase (); | 264 | { |
265 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); | ||
266 | } | ||
263 | } | 267 | } |
264 | return GNUNET_OK; | 268 | return GNUNET_OK; |
265 | } | 269 | } |