fixes
authorChristian Grothoff <christian@grothoff.org>
Sun, 5 Sep 2010 13:36:42 +0000 (13:36 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 5 Sep 2010 13:36:42 +0000 (13:36 +0000)
src/datastore/datastore_api.c
src/fs/fs_namespace.c

index 21675b0b7c0fecb1b54858cf676ff1e793f3e9bb..5bb4160c28003b60ef8e38b13591f38f4f4a3757 100644 (file)
@@ -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);
 }
 
 
index a9bcaf8e5589c1c4e75040f65ad60624dd81041e..445ce18cfb70acea6993d788125cef1a01023f75 100644 (file)
@@ -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)
     {