-fixing 2352
[oweals/gnunet.git] / src / fs / test_gnunet_service_fs_p2p.c
index a853897b2e81275278641c0e46730ba5d70fc3d7..7ca786ed2a97c3dd6924da917b3e2072c715798f 100644 (file)
@@ -62,7 +62,7 @@ do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     cc = NULL;
   }
   GNUNET_FS_TEST_daemons_stop (NUM_DAEMONS, daemons);
-  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE))
+  if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
   {
     del = GNUNET_TIME_absolute_get_duration (start_time);
     if (del.rel_value == 0)