refactor DHT for new service API
[oweals/gnunet.git] / src / core / gnunet-core.c
index 968072e228b43dfc8db979ab0bde381817f7d783..d91dc304d5c1b88152b44f994e958f9d221f9fea 100644 (file)
@@ -155,8 +155,7 @@ run (void *cls, char *const *args, const char *cfgfile,
              _("Failed to connect to CORE service!\n"));
     return;
   }
-  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
-                                &shutdown_task, NULL);
+  GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
 }