diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-11 12:19:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-11 12:19:55 +0200 |
commit | 38c918ff27e5a90c1a17f3989a78c7fca564c47a (patch) | |
tree | 926616f78b59fc0fa3d5e6e643f787f4a9fdcb2f /src/namestore/gnunet-zoneimport.c | |
parent | 7fe5d70497352ea453289fc582089ac1c352204a (diff) | |
download | gnunet-38c918ff27e5a90c1a17f3989a78c7fca564c47a.tar.gz gnunet-38c918ff27e5a90c1a17f3989a78c7fca564c47a.zip |
support async commit
Diffstat (limited to 'src/namestore/gnunet-zoneimport.c')
-rw-r--r-- | src/namestore/gnunet-zoneimport.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c index 493569bca..9041431d1 100644 --- a/src/namestore/gnunet-zoneimport.c +++ b/src/namestore/gnunet-zoneimport.c | |||
@@ -1254,13 +1254,18 @@ run (void *cls, | |||
1254 | "libgnunet_plugin_namestore_%s", | 1254 | "libgnunet_plugin_namestore_%s", |
1255 | database); | 1255 | database); |
1256 | ns = GNUNET_PLUGIN_load (db_lib_name, | 1256 | ns = GNUNET_PLUGIN_load (db_lib_name, |
1257 | (void *) cfg); | 1257 | (void *) cfg); |
1258 | GNUNET_free (database); | 1258 | GNUNET_free (database); |
1259 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, | ||
1260 | NULL); | ||
1261 | if (NULL == ns) | ||
1262 | { | ||
1263 | GNUNET_SCHEDULER_shutdown (); | ||
1264 | return; | ||
1265 | } | ||
1259 | id = GNUNET_IDENTITY_connect (cfg, | 1266 | id = GNUNET_IDENTITY_connect (cfg, |
1260 | &identity_cb, | 1267 | &identity_cb, |
1261 | NULL); | 1268 | NULL); |
1262 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, | ||
1263 | NULL); | ||
1264 | } | 1269 | } |
1265 | 1270 | ||
1266 | 1271 | ||