refactor DHT for new service API
[oweals/gnunet.git] / src / nse / gnunet-nse.c
index 97c3da29b10dd33079b83c1977d3418ea1c14504..840b8e64df304373f15f526025c433c6f1ea1f7e 100644 (file)
@@ -143,8 +143,8 @@ run (void *cls, char *const *args, const char *cfgfile,
                                      GNUNET_TIME_UNIT_SECONDS,
                                      nse_test_result,
                                      NULL);
-  shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
-                                                &do_shutdown, NULL);
+  shutdown_task = GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
+                                                NULL);
 }