From: Christian Grothoff Date: Wed, 24 Nov 2010 16:34:32 +0000 (+0000) Subject: random hack - 1618 X-Git-Tag: initial-import-from-subversion-38251~19628 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=635353dfc45ff76838db307c1df9faf56b3e188f;p=oweals%2Fgnunet.git random hack - 1618 --- 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))