From: Nathan S. Evans Date: Wed, 16 Feb 2011 14:35:54 +0000 (+0000) Subject: testing code X-Git-Tag: initial-import-from-subversion-38251~19123 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=33ae52c2d65609a5910029ce5c4da2bda72b529f;p=oweals%2Fgnunet.git testing code --- diff --git a/src/testing/testing.c b/src/testing/testing.c index f67d85391..3b85443e2 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -1510,9 +1510,11 @@ notify_connect_result (void *cls, } } - GNUNET_TRANSPORT_disconnect (ctx->d1th); + if (ctx->d1th != NULL) + GNUNET_TRANSPORT_disconnect (ctx->d1th); ctx->d1th = NULL; - GNUNET_CORE_disconnect (ctx->d1core); + if (ctx->d1core != NULL) + GNUNET_CORE_disconnect (ctx->d1core); ctx->d1core = NULL; GNUNET_free (ctx); } @@ -1669,6 +1671,7 @@ core_initial_iteration (void *cls, ctx->distance = 0; /* FIXME: distance */ ctx->timeout_task = GNUNET_SCHEDULER_add_now (¬ify_connect_result, ctx); + GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Not sending a connect request; already connected!\n"); } else if (peer == NULL) /* Peer not already connected, need to schedule connect request! */ {