-always signal download start before 'completed', even for 0-byte files
authorChristian Grothoff <christian@grothoff.org>
Sat, 4 Feb 2012 21:18:27 +0000 (21:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 4 Feb 2012 21:18:27 +0000 (21:18 +0000)
src/fs/fs_download.c

index 85ae3ae349583bd4837572dfee9a0e5db72d03e6..f9e654928366eacd0bb4bb4d84c453b89a56d7e4 100644 (file)
@@ -1788,6 +1788,9 @@ GNUNET_FS_download_start_task_ (void *cls,
       GNUNET_DISK_file_close (fh);
     }
     GNUNET_FS_download_sync_ (dc);
+    pi.status = GNUNET_FS_STATUS_DOWNLOAD_START;
+    pi.value.download.specifics.start.meta = dc->meta;
+    GNUNET_FS_download_make_status_ (&pi, dc);
     check_completed (dc);
     return;
   }