fix continuation
authorChristian Grothoff <christian@grothoff.org>
Mon, 30 Apr 2018 09:06:07 +0000 (11:06 +0200)
committerChristian Grothoff <christian@grothoff.org>
Mon, 30 Apr 2018 09:06:07 +0000 (11:06 +0200)
src/zonemaster/gnunet-service-zonemaster.c

index b45ed576cb6f45585eddcdee4142dc8ccd4ac534..dc110415618d5d07cb4fca8f77bf645cb176a4ec 100644 (file)
@@ -777,6 +777,7 @@ put_gns_record (void *cls,
 
   (void) cls;
   ns_iteration_left--;
+  check_zone_dht_next ();
   rd_public_count = convert_records_for_export (rd,
                                                 rd_count,
                                                 rd_public);
@@ -785,7 +786,6 @@ put_gns_record (void *cls,
     GNUNET_assert (NULL == zone_publish_task);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "Record set empty, moving to next record set\n");
-    check_zone_dht_next ();
     return;
   }
   /* We got a set of records to publish */
@@ -804,7 +804,6 @@ put_gns_record (void *cls,
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Could not perform DHT PUT, is the DHT running?\n");
     GNUNET_free (ma);
-    check_zone_dht_next ();
     return;
   }
   dht_queue_length++;