aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-05-30 18:33:38 +0000
committerChristian Grothoff <christian@grothoff.org>2013-05-30 18:33:38 +0000
commitddf8da52e94c520a93383edddfef3f537664a7c3 (patch)
tree9c884d67143b5d615dfd91f49fd8c2ecd65db7c0 /src/fs/fs_download.c
parent2f90d42c880d86c2ebd272f7ae975401a92f2759 (diff)
downloadgnunet-ddf8da52e94c520a93383edddfef3f537664a7c3.tar.gz
gnunet-ddf8da52e94c520a93383edddfef3f537664a7c3.zip
-export FS handle during events, as we might generate events duing FS_start and client then doesn't know the handle yet
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r--src/fs/fs_download.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index dc4d6723b..2371e6544 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -122,6 +122,7 @@ GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi,
122 pi->value.download.eta = 122 pi->value.download.eta =
123 GNUNET_TIME_calculate_eta (dc->start_time, dc->completed, dc->length); 123 GNUNET_TIME_calculate_eta (dc->start_time, dc->completed, dc->length);
124 pi->value.download.is_active = (NULL == dc->client) ? GNUNET_NO : GNUNET_YES; 124 pi->value.download.is_active = (NULL == dc->client) ? GNUNET_NO : GNUNET_YES;
125 pi->fsh = dc->h;
125 if (0 == (dc->options & GNUNET_FS_DOWNLOAD_IS_PROBE)) 126 if (0 == (dc->options & GNUNET_FS_DOWNLOAD_IS_PROBE))
126 dc->client_info = dc->h->upcb (dc->h->upcb_cls, pi); 127 dc->client_info = dc->h->upcb (dc->h->upcb_cls, pi);
127 else 128 else