From: Christian Grothoff Date: Fri, 15 Jul 2011 14:12:49 +0000 (+0000) Subject: cleaner X-Git-Tag: initial-import-from-subversion-38251~17813 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=216254ed3b9835df08609467c0173a54b617e677;p=oweals%2Fgnunet.git cleaner --- 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);