gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11490 - gnunet/src/hostlist


From: gnunet
Subject: [GNUnet-SVN] r11490 - gnunet/src/hostlist
Date: Tue, 25 May 2010 10:14:07 +0200

Author: wachs
Date: 2010-05-25 10:14:07 +0200 (Tue, 25 May 2010)
New Revision: 11490

Modified:
   gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
Log:


Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c  2010-05-25 
07:57:32 UTC (rev 11489)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c  2010-05-25 
08:14:07 UTC (rev 11490)
@@ -183,14 +183,13 @@
               int is_persistent)
 {
   download_stats = NULL;
-  if ( ((struct PeerContext *) cls == &learn_peer) && (value == 2) && 
(learned_hostlist_downloaded == GNUNET_NO) )
+  if ( (value == 2) && (learned_hostlist_downloaded == GNUNET_NO) )
   {
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 _("Peer has successfully downloaded advertised URI \n"));
     learned_hostlist_downloaded = GNUNET_YES;
+    shutdown_testcase();
   }
-  if (GNUNET_NO != learned_hostlist_downloaded)
-    shutdown_testcase();
   return GNUNET_OK;
 }
 
@@ -467,6 +466,9 @@
 
   failed = GNUNET_NO;
 
+  if (learned_hostlist_downloaded == GNUNET_YES)
+    return GNUNET_YES;
+
   if (timeout == GNUNET_YES)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]