diff options
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-dv.c | 3 | ||||
-rw-r--r-- | src/dv/gnunet-service-dv.c | 3 | ||||
-rw-r--r-- | src/dv/test_transport_dv.c | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/dv/gnunet-dv.c b/src/dv/gnunet-dv.c index d5d95acca..d0917d363 100644 --- a/src/dv/gnunet-dv.c +++ b/src/dv/gnunet-dv.c | |||
@@ -145,8 +145,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
145 | &change_cb, | 145 | &change_cb, |
146 | &disconnect_cb, | 146 | &disconnect_cb, |
147 | &message_cb); | 147 | &message_cb); |
148 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 148 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); |
149 | &shutdown_task, NULL); | ||
150 | } | 149 | } |
151 | 150 | ||
152 | 151 | ||
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index bd0057ab4..df95fd67b 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -2229,8 +2229,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
2229 | MAX_QUEUE_SIZE_PLUGIN); | 2229 | MAX_QUEUE_SIZE_PLUGIN); |
2230 | stats = GNUNET_STATISTICS_create ("dv", cfg); | 2230 | stats = GNUNET_STATISTICS_create ("dv", cfg); |
2231 | GNUNET_SERVER_add_handlers (server, plugin_handlers); | 2231 | GNUNET_SERVER_add_handlers (server, plugin_handlers); |
2232 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 2232 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); |
2233 | &shutdown_task, NULL); | ||
2234 | } | 2233 | } |
2235 | 2234 | ||
2236 | 2235 | ||
diff --git a/src/dv/test_transport_dv.c b/src/dv/test_transport_dv.c index 1afa30fa9..0a43252a5 100644 --- a/src/dv/test_transport_dv.c +++ b/src/dv/test_transport_dv.c | |||
@@ -82,8 +82,8 @@ test_connection (void *cls, | |||
82 | unsigned int links_succeeded, | 82 | unsigned int links_succeeded, |
83 | unsigned int links_failed) | 83 | unsigned int links_failed) |
84 | { | 84 | { |
85 | shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 85 | shutdown_task = GNUNET_SCHEDULER_add_shutdown (&do_shutdown, |
86 | &do_shutdown, NULL); | 86 | NULL); |
87 | if (4 != num_peers) | 87 | if (4 != num_peers) |
88 | { | 88 | { |
89 | ok = 1; | 89 | ok = 1; |