diff options
Diffstat (limited to 'src/pt/test_gns_vpn.c')
-rw-r--r-- | src/pt/test_gns_vpn.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c index 0c6e42500..6a5aa5e61 100644 --- a/src/pt/test_gns_vpn.c +++ b/src/pt/test_gns_vpn.c | |||
@@ -261,6 +261,12 @@ start_curl (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
261 | curl_main (); | 261 | curl_main (); |
262 | } | 262 | } |
263 | 263 | ||
264 | static void | ||
265 | disco_ns (void* cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
266 | { | ||
267 | GNUNET_NAMESTORE_disconnect (namestore); | ||
268 | } | ||
269 | |||
264 | /** | 270 | /** |
265 | * Callback invoked from the namestore service once record is | 271 | * Callback invoked from the namestore service once record is |
266 | * created. | 272 | * created. |
@@ -276,8 +282,8 @@ start_curl (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
276 | static void | 282 | static void |
277 | commence_testing (void *cls, int32_t success, const char *emsg) | 283 | commence_testing (void *cls, int32_t success, const char *emsg) |
278 | { | 284 | { |
279 | GNUNET_NAMESTORE_disconnect (namestore); | 285 | GNUNET_SCHEDULER_add_now (&disco_ns, NULL); |
280 | 286 | ||
281 | if ((emsg != NULL) && (GNUNET_YES != success)) | 287 | if ((emsg != NULL) && (GNUNET_YES != success)) |
282 | { | 288 | { |
283 | fprintf (stderr, | 289 | fprintf (stderr, |