From 22064b8936b87dad145236f8b52e97b9a0381f69 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 Sep 2010 13:36:42 +0000 Subject: [PATCH] fixes --- src/datastore/datastore_api.c | 2 +- src/fs/fs_namespace.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 21675b0b7..5bb4160c2 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c @@ -729,10 +729,10 @@ process_status_message (void *cls, (int) status, emsg); #endif + process_queue (h); rc.cont (rc.cont_cls, status, emsg); - process_queue (h); } diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index a9bcaf8e5..445ce18cf 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c @@ -164,6 +164,12 @@ read_update_information_graph (struct GNUNET_FS_Namespace *ns) char *emsg; fn = get_update_information_directory (ns); + if (GNUNET_YES != + GNUNET_DISK_file_test (fn)) + { + GNUNET_free (fn); + return; + } rh = GNUNET_BIO_read_open (fn); if (rh == NULL) { -- 2.25.1