aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-zoneimport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-11 12:19:55 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-11 12:19:55 +0200
commit38c918ff27e5a90c1a17f3989a78c7fca564c47a (patch)
tree926616f78b59fc0fa3d5e6e643f787f4a9fdcb2f /src/namestore/gnunet-zoneimport.c
parent7fe5d70497352ea453289fc582089ac1c352204a (diff)
support async commit
Diffstat (limited to 'src/namestore/gnunet-zoneimport.c')
-rw-r--r--src/namestore/gnunet-zoneimport.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c
index 493569bcaa..9041431d1d 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -1254,13 +1254,18 @@ run (void *cls,
"libgnunet_plugin_namestore_%s",
database);
ns = GNUNET_PLUGIN_load (db_lib_name,
- (void *) cfg);
+ (void *) cfg);
GNUNET_free (database);
+ GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
+ NULL);
+ if (NULL == ns)
+ {
+ GNUNET_SCHEDULER_shutdown ();
+ return;
+ }
id = GNUNET_IDENTITY_connect (cfg,
&identity_cb,
NULL);
- GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
- NULL);
}