diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-11 22:00:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-11 22:00:26 +0000 |
commit | 3ed8e42b3f52c56d64929e3bab244a3489868bb5 (patch) | |
tree | 99b02236a01797e6e3ad9911a68e88e4ba8490e2 | |
parent | ce0a51361bc8a4a5d05fe762c452e879ab607784 (diff) | |
download | gnunet-3ed8e42b3f52c56d64929e3bab244a3489868bb5.tar.gz gnunet-3ed8e42b3f52c56d64929e3bab244a3489868bb5.zip |
fixing 1568
-rw-r--r-- | src/fs/fs_publish.c | 9 | ||||
-rw-r--r-- | src/fs/fs_unindex.c | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 89d1f84cb..90908f412 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -487,6 +487,15 @@ encode_cont (void *cls, | |||
487 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 487 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
488 | "Finished with tree encoder\n"); | 488 | "Finished with tree encoder\n"); |
489 | #endif | 489 | #endif |
490 | /* final progress event */ | ||
491 | pi.status = GNUNET_FS_STATUS_PUBLISH_PROGRESS; | ||
492 | pi.value.publish.specifics.progress.data = NULL; | ||
493 | pi.value.publish.specifics.progress.offset = GNUNET_FS_uri_chk_get_file_size (p->chk_uri); | ||
494 | pi.value.publish.specifics.progress.data_len = 0; | ||
495 | pi.value.publish.specifics.progress.depth = 0; | ||
496 | p->client_info = GNUNET_FS_publish_make_status_ (&pi, sc, p, | ||
497 | GNUNET_FS_uri_chk_get_file_size (p->chk_uri)); | ||
498 | |||
490 | /* continue with main */ | 499 | /* continue with main */ |
491 | sc->upload_task | 500 | sc->upload_task |
492 | = GNUNET_SCHEDULER_add_with_priority (sc->h->sched, | 501 | = GNUNET_SCHEDULER_add_with_priority (sc->h->sched, |
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index 7d81ab647..38e1073f0 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -292,6 +292,11 @@ unindex_finish (void *cls, | |||
292 | struct GNUNET_FS_Uri *uri; | 292 | struct GNUNET_FS_Uri *uri; |
293 | struct UnindexMessage req; | 293 | struct UnindexMessage req; |
294 | 294 | ||
295 | /* generate final progress message */ | ||
296 | unindex_progress (uc, | ||
297 | uc->file_size, | ||
298 | NULL, | ||
299 | 0, 0); | ||
295 | GNUNET_FS_tree_encoder_finish (uc->tc, | 300 | GNUNET_FS_tree_encoder_finish (uc->tc, |
296 | &uri, | 301 | &uri, |
297 | &emsg); | 302 | &emsg); |