diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-02 20:09:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-02 20:09:06 +0000 |
commit | b15f1d846989340440c41198ac8ae710ae37bdf5 (patch) | |
tree | 04878e1d7d7786ca48477f88062921ed72203ade /src/gns | |
parent | fc1374f2d850b1c7610ad239f9fe71beee5c5bd6 (diff) | |
download | gnunet-b15f1d846989340440c41198ac8ae710ae37bdf5.tar.gz gnunet-b15f1d846989340440c41198ac8ae710ae37bdf5.zip |
-handle namestore disconnect properly
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index cb516d2c8..2a9d86a8b 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -548,11 +548,14 @@ put_gns_record (void *cls, | |||
548 | { | 548 | { |
549 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 549 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
550 | "Got disconnected from namestore database, retrying.\n"); | 550 | "Got disconnected from namestore database, retrying.\n"); |
551 | namestore_iter = NULL; | ||
551 | if (NULL != zone_publish_task) | 552 | if (NULL != zone_publish_task) |
552 | { | 553 | { |
553 | GNUNET_SCHEDULER_cancel (zone_publish_task); | 554 | GNUNET_SCHEDULER_cancel (zone_publish_task); |
554 | zone_publish_task = NULL; | 555 | zone_publish_task = NULL; |
555 | } | 556 | } |
557 | zone_publish_task = GNUNET_SCHEDULER_add_now (&publish_zone_dht_start, | ||
558 | NULL); | ||
556 | return; | 559 | return; |
557 | } | 560 | } |
558 | if (NULL == label) | 561 | if (NULL == label) |