-fix #2393
authorChristian Grothoff <christian@grothoff.org>
Fri, 1 Jun 2012 13:48:53 +0000 (13:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 1 Jun 2012 13:48:53 +0000 (13:48 +0000)
src/hostlist/test_gnunet_daemon_hostlist_learning.c

index 5fcbd538b826391224581ba4b1450352a12217f3..58c92d3d60962af618284d2ebb80c5643498b77f 100644 (file)
@@ -235,7 +235,9 @@ process_uris_recv (void *cls, const char *subsystem, const char *name,
                 "Peer has successfully saved advertised URI\n");
     learned_hostlist_saved = GNUNET_YES;
     if ((learned_hostlist_downloaded == GNUNET_YES) && (adv_sent == GNUNET_YES))
-      shutdown_testcase ();
+    {
+      GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);
+    }
   }
   return GNUNET_OK;
 }
@@ -259,7 +261,9 @@ process_adv_sent (void *cls, const char *subsystem, const char *name,
     adv_sent = GNUNET_YES;
     if ((learned_hostlist_downloaded == GNUNET_YES) &&
         (learned_hostlist_saved == GNUNET_YES))
-      shutdown_testcase ();
+    {
+      GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);
+    }
   }
   return GNUNET_OK;
 }