diff options
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 1aeca9b85..a44be2dfe 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -161,9 +161,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
161 | shutdown_task (NULL); | 161 | shutdown_task (NULL); |
162 | return; | 162 | return; |
163 | } | 163 | } |
164 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 164 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, |
165 | &shutdown_task, | 165 | NULL); |
166 | NULL); | ||
167 | GDS_transport_handle = | 166 | GDS_transport_handle = |
168 | GNUNET_TRANSPORT_connect (GDS_cfg, NULL, NULL, NULL, NULL, NULL); | 167 | GNUNET_TRANSPORT_connect (GDS_cfg, NULL, NULL, NULL, NULL, NULL); |
169 | if (GDS_transport_handle == NULL) | 168 | if (GDS_transport_handle == NULL) |