diff options
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index ed24a164a..ce852f2d0 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -378,8 +378,7 @@ check_completed (struct GNUNET_FS_DownloadContext *dc) | |||
378 | struct GNUNET_FS_DownloadContext *pos; | 378 | struct GNUNET_FS_DownloadContext *pos; |
379 | 379 | ||
380 | /* first, check if we need to download children */ | 380 | /* first, check if we need to download children */ |
381 | if ( (NULL == dc->child_head) && | 381 | if (is_recursive_download (dc)) |
382 | (is_recursive_download (dc)) ) | ||
383 | full_recursive_download (dc); | 382 | full_recursive_download (dc); |
384 | /* then, check if children are done already */ | 383 | /* then, check if children are done already */ |
385 | for (pos = dc->child_head; NULL != pos; pos = pos->next) | 384 | for (pos = dc->child_head; NULL != pos; pos = pos->next) |