From 635353dfc45ff76838db307c1df9faf56b3e188f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 24 Nov 2010 16:34:32 +0000 Subject: [PATCH] random hack - 1618 --- src/core/gnunet-service-core.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index a13f3a213..f28f2001e 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -2757,7 +2757,7 @@ notify_transport_connect_done (void *cls, size_t size, void *buf) /* transport should only call us to transmit a message after * telling us about a successful connection to the respective peer */ #if DEBUG_CORE - GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Timeout on notify connect!\n"); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Timeout on notify connect!\n"); #endif return 0; } @@ -4195,6 +4195,11 @@ handle_transport_notify_disconnect (void *cls, cnm.peer = *peer; send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT); } + if (NULL != n->th) + { + GNUNET_TRANSPORT_notify_transmit_ready_cancel (n->th); + n->th = NULL; + } n->is_connected = GNUNET_NO; n->status = PEER_STATE_DOWN; while (NULL != (car = n->active_client_request_head)) -- 2.25.1