From 216254ed3b9835df08609467c0173a54b617e677 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jul 2011 14:12:49 +0000 Subject: [PATCH] cleaner --- src/core/core_api.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/core_api.c b/src/core/core_api.c index af46c6e63..7f7928fd3 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -490,11 +490,15 @@ reconnect_later (struct GNUNET_CORE_Handle *h) struct PeerRecord *pr; GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); + if (NULL != h->cth) + { + GNUNET_CLIENT_notify_transmit_ready_cancel (h->cth); + h->cth = NULL; + } if (h->client != NULL) { GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); h->client = NULL; - h->cth = NULL; } h->currently_down = GNUNET_YES; GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); -- 2.25.1