aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_cname_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_cname_lookup.c')
-rw-r--r--src/gns/test_gns_cname_lookup.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gns/test_gns_cname_lookup.c b/src/gns/test_gns_cname_lookup.c
index a9eae329c..f1045fda7 100644
--- a/src/gns/test_gns_cname_lookup.c
+++ b/src/gns/test_gns_cname_lookup.c
@@ -275,6 +275,12 @@ on_lookup_result_plus (void *cls, uint32_t rd_count,
275} 275}
276 276
277 277
278static void
279disco_ns (void* cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
280{
281 GNUNET_NAMESTORE_disconnect (namestore_handle);
282}
283
278/** 284/**
279 * Function scheduled to be run on the successful start of services 285 * Function scheduled to be run on the successful start of services
280 * tries to look up the dns record for TEST_DOMAIN 286 * tries to look up the dns record for TEST_DOMAIN
@@ -283,8 +289,7 @@ static void
283commence_testing (void *cls, int32_t success, const char *emsg) 289commence_testing (void *cls, int32_t success, const char *emsg)
284{ 290{
285 291
286 292 GNUNET_SCHEDULER_add_now (disco_ns, NULL);
287 GNUNET_NAMESTORE_disconnect (namestore_handle);
288 293
289 gns_handle = GNUNET_GNS_connect(cfg); 294 gns_handle = GNUNET_GNS_connect(cfg);
290 295