aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-xdht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-xdht.c')
-rw-r--r--src/dht/gnunet-service-xdht.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-xdht.c b/src/dht/gnunet-service-xdht.c
index a421d25b3..432fea354 100644
--- a/src/dht/gnunet-service-xdht.c
+++ b/src/dht/gnunet-service-xdht.c
@@ -24,6 +24,7 @@
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * @author Nathan Evans 25 * @author Nathan Evans
26 */ 26 */
27
27#include "platform.h" 28#include "platform.h"
28#include "gnunet_block_lib.h" 29#include "gnunet_block_lib.h"
29#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
@@ -113,6 +114,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
113 GNUNET_TRANSPORT_disconnect (GDS_transport_handle); 114 GNUNET_TRANSPORT_disconnect (GDS_transport_handle);
114 GDS_transport_handle = NULL; 115 GDS_transport_handle = NULL;
115 } 116 }
117
116 GDS_NEIGHBOURS_done (); 118 GDS_NEIGHBOURS_done ();
117 GDS_DATACACHE_done (); 119 GDS_DATACACHE_done ();
118 GDS_ROUTING_done (); 120 GDS_ROUTING_done ();
@@ -152,11 +154,13 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
152 } 154 }
153 GDS_block_context = GNUNET_BLOCK_context_create (GDS_cfg); 155 GDS_block_context = GNUNET_BLOCK_context_create (GDS_cfg);
154 GDS_stats = GNUNET_STATISTICS_create ("dht", GDS_cfg); 156 GDS_stats = GNUNET_STATISTICS_create ("dht", GDS_cfg);
157
155 GDS_ROUTING_init (); 158 GDS_ROUTING_init ();
156 GDS_NSE_init (); 159 GDS_NSE_init ();
157 GDS_DATACACHE_init (); 160 GDS_DATACACHE_init ();
158 GDS_HELLO_init (); 161 GDS_HELLO_init ();
159 GDS_CLIENTS_init (server); 162 GDS_CLIENTS_init (server);
163
160 if (GNUNET_OK != GDS_NEIGHBOURS_init ()) 164 if (GNUNET_OK != GDS_NEIGHBOURS_init ())
161 { 165 {
162 shutdown_task (NULL, NULL); 166 shutdown_task (NULL, NULL);