-round expiration times to full seconds
[oweals/gnunet.git] / src / fs / fs_dirmetascan.c
index 8755acf714cf0b1c75b8b41b0662a67ca9785a53..7139ea45a99563ef6dfa57cfd23bd4d05ddcd3cb 100644 (file)
@@ -102,7 +102,7 @@ GNUNET_FS_directory_scan_abort (struct GNUNET_FS_DirScanner *ds)
 {
   /* terminate helper */
   if (NULL != ds->helper)
-    GNUNET_HELPER_stop (ds->helper);
+    GNUNET_HELPER_stop (ds->helper, GNUNET_NO);
   
   /* free resources */
   if (NULL != ds->toplevel)
@@ -234,7 +234,7 @@ finish_scan (void *cls,
   ds->stop_task = GNUNET_SCHEDULER_NO_TASK;
   if (NULL != ds->helper)
   {
-    GNUNET_HELPER_stop (ds->helper);
+    GNUNET_HELPER_stop (ds->helper, GNUNET_NO);
     ds->helper = NULL;
   }
   ds->progress_callback (ds->progress_callback_cls, 
@@ -428,6 +428,8 @@ helper_died_cb (void *cls)
   struct GNUNET_FS_DirScanner *ds = cls;
 
   ds->helper = NULL;
+  if (GNUNET_SCHEDULER_NO_TASK != ds->stop_task)
+    return; /* normal death, was finished */
   ds->progress_callback (ds->progress_callback_cls, 
                         NULL, GNUNET_SYSERR,
                         GNUNET_FS_DIRSCANNER_INTERNAL_ERROR);