diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-18 22:23:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-18 22:23:57 +0000 |
commit | a93ba6d310a02cc6a059f6ae744e4c7e9b18f41c (patch) | |
tree | f9676d5ab5b10baddd9b00421b1e349991902bf0 /src/fs/fs_download.c | |
parent | 0ec759513a49b4219d6a6b235ecca50c123a6522 (diff) |
-sync search results upon adding/removing downloads
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 4fd2b78a12..760b62bc26 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -1832,6 +1832,8 @@ GNUNET_FS_download_start_task_ (void *cls, chk) ? dc->uri->data.chk.chk : dc->uri->data.loc.fi.chk; /* signal start */ GNUNET_FS_download_sync_ (dc); + if (NULL != dc->search) + GNUNET_FS_search_result_sync_ (dc->search); pi.status = GNUNET_FS_STATUS_DOWNLOAD_START; pi.value.download.specifics.start.meta = dc->meta; GNUNET_FS_download_make_status_ (&pi, dc); @@ -2242,6 +2244,7 @@ GNUNET_FS_download_stop (struct GNUNET_FS_DownloadContext *dc, int do_delete) if (dc->search != NULL) { dc->search->download = NULL; + GNUNET_FS_search_result_sync_ (dc->search); dc->search = NULL; } if (dc->job_queue != NULL) |