no delays during first iteration
authorChristian Grothoff <christian@grothoff.org>
Sun, 13 May 2018 09:50:47 +0000 (11:50 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sun, 13 May 2018 09:50:47 +0000 (11:50 +0200)
src/zonemaster/gnunet-service-zonemaster.c

index 1c8fad7005fb050b46868e5078c1b9233be511b5..04fd1d7de6647da632cf423676d318b3db8a0eb3 100644 (file)
@@ -504,6 +504,9 @@ check_zone_namestore_next ()
   /* make sure we do not overshoot because of the #NS_BLOCK_SIZE factor */
   delay = GNUNET_TIME_relative_min (MAXIMUM_ZONE_ITERATION_INTERVAL,
                                     delay);
+  /* no delays on first iteration */
+  if (GNUNET_YES == first_zone_iteration)
+    delay = GNUNET_TIME_UNIT_ZERO;
   GNUNET_assert (NULL == zone_publish_task);
   zone_publish_task = GNUNET_SCHEDULER_add_delayed (delay,
                                                     &publish_zone_namestore_next,