-only trigger check config if we actually need it
[oweals/gnunet.git] / src / fs / gnunet-download.c
index a2b0aa5fc6618e928fa247f35da70d7c4ae12dc4..6d9adb8abe46db55bb120291db753818d0683da7 100644 (file)
@@ -284,8 +284,8 @@ run (void *cls, char *const *args, const char *cfgfile,
     ctx = NULL;
     return;
   }
-  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task,
-                                NULL);
+  GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
+                                NULL);
 }