-handle namestore disconnect properly
authorChristian Grothoff <christian@grothoff.org>
Sat, 2 Jul 2016 20:09:06 +0000 (20:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 2 Jul 2016 20:09:06 +0000 (20:09 +0000)
src/gns/gnunet-service-gns.c

index cb516d2c89e7dbc3a4712237767013fda70c1665..2a9d86a8bb728150598422293a86ce34c3dd8064 100644 (file)
@@ -548,11 +548,14 @@ put_gns_record (void *cls,
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "Got disconnected from namestore database, retrying.\n");
+    namestore_iter = NULL;
     if (NULL != zone_publish_task)
     {
       GNUNET_SCHEDULER_cancel (zone_publish_task);
       zone_publish_task = NULL;
     }
+    zone_publish_task = GNUNET_SCHEDULER_add_now (&publish_zone_dht_start,
+                                                  NULL);
     return;
   }
   if (NULL == label)