aboutsummaryrefslogtreecommitdiff
path: root/src/template/gnunet-service-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/template/gnunet-service-template.c')
-rw-r--r--src/template/gnunet-service-template.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/template/gnunet-service-template.c b/src/template/gnunet-service-template.c
index 556d44bd8..6ff63c073 100644
--- a/src/template/gnunet-service-template.c
+++ b/src/template/gnunet-service-template.c
@@ -47,7 +47,8 @@ cleanup_task (void *cls)
47 * @param cfg configuration to use 47 * @param cfg configuration to use
48 */ 48 */
49static void 49static void
50run (void *cls, struct GNUNET_SERVER_Handle *server, 50run (void *cls,
51 struct GNUNET_SERVER_Handle *server,
51 const struct GNUNET_CONFIGURATION_Handle *cfg) 52 const struct GNUNET_CONFIGURATION_Handle *cfg)
52{ 53{
53 static const struct GNUNET_SERVER_MessageHandler handlers[] = { 54 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
@@ -56,8 +57,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
56 }; 57 };
57 /* FIXME: do setup here */ 58 /* FIXME: do setup here */
58 GNUNET_SERVER_add_handlers (server, handlers); 59 GNUNET_SERVER_add_handlers (server, handlers);
59 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, 60 GNUNET_SCHEDULER_add_shutdown (&cleanup_task,
60 NULL); 61 NULL);
61} 62}
62 63
63 64