fixing 1568
authorChristian Grothoff <christian@grothoff.org>
Sun, 11 Jul 2010 22:00:26 +0000 (22:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 11 Jul 2010 22:00:26 +0000 (22:00 +0000)
src/fs/fs_publish.c
src/fs/fs_unindex.c

index 89d1f84cb9d31ac0089313393e428c0f01b8e231..90908f412ebc12158d878cbc930d72292eb8cc01 100644 (file)
@@ -487,6 +487,15 @@ encode_cont (void *cls,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Finished with tree encoder\n");
 #endif  
+  /* final progress event */
+  pi.status = GNUNET_FS_STATUS_PUBLISH_PROGRESS;
+  pi.value.publish.specifics.progress.data = NULL;
+  pi.value.publish.specifics.progress.offset = GNUNET_FS_uri_chk_get_file_size (p->chk_uri);
+  pi.value.publish.specifics.progress.data_len = 0;
+  pi.value.publish.specifics.progress.depth = 0;
+  p->client_info = GNUNET_FS_publish_make_status_ (&pi, sc, p, 
+                                                  GNUNET_FS_uri_chk_get_file_size (p->chk_uri));
+
   /* continue with main */
   sc->upload_task 
     = GNUNET_SCHEDULER_add_with_priority (sc->h->sched,
index 7d81ab6473f81390a38ec808325ba0f5409c4604..38e1073f0a3735a263a30f67602396a11b426e1a 100644 (file)
@@ -292,6 +292,11 @@ unindex_finish (void *cls,
   struct GNUNET_FS_Uri *uri;
   struct UnindexMessage req;
 
+  /* generate final progress message */
+  unindex_progress (uc, 
+                   uc->file_size,
+                   NULL,
+                   0, 0);
   GNUNET_FS_tree_encoder_finish (uc->tc,
                                 &uri,
                                 &emsg);