diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-05-25 08:14:07 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-05-25 08:14:07 +0000 |
commit | d8a43dd206a34f83c274f738bc688b75b8c2561a (patch) | |
tree | d8e46605b886276480949b323efbe4efb07244b4 /src/hostlist/test_gnunet_daemon_hostlist_learning.c | |
parent | c194c1c3e0358ab9764725f861f698e37669d836 (diff) | |
download | gnunet-d8a43dd206a34f83c274f738bc688b75b8c2561a.tar.gz gnunet-d8a43dd206a34f83c274f738bc688b75b8c2561a.zip |
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist_learning.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index e15802675..5e6c673dd 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -183,14 +183,13 @@ process_downloads (void *cls, | |||
183 | int is_persistent) | 183 | int is_persistent) |
184 | { | 184 | { |
185 | download_stats = NULL; | 185 | download_stats = NULL; |
186 | if ( ((struct PeerContext *) cls == &learn_peer) && (value == 2) && (learned_hostlist_downloaded == GNUNET_NO) ) | 186 | if ( (value == 2) && (learned_hostlist_downloaded == GNUNET_NO) ) |
187 | { | 187 | { |
188 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 188 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
189 | _("Peer has successfully downloaded advertised URI \n")); | 189 | _("Peer has successfully downloaded advertised URI \n")); |
190 | learned_hostlist_downloaded = GNUNET_YES; | 190 | learned_hostlist_downloaded = GNUNET_YES; |
191 | } | ||
192 | if (GNUNET_NO != learned_hostlist_downloaded) | ||
193 | shutdown_testcase(); | 191 | shutdown_testcase(); |
192 | } | ||
194 | return GNUNET_OK; | 193 | return GNUNET_OK; |
195 | } | 194 | } |
196 | 195 | ||
@@ -467,6 +466,9 @@ check () | |||
467 | 466 | ||
468 | failed = GNUNET_NO; | 467 | failed = GNUNET_NO; |
469 | 468 | ||
469 | if (learned_hostlist_downloaded == GNUNET_YES) | ||
470 | return GNUNET_YES; | ||
471 | |||
470 | if (timeout == GNUNET_YES) | 472 | if (timeout == GNUNET_YES) |
471 | { | 473 | { |
472 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 474 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |