From: Christian Grothoff Date: Sat, 31 Oct 2009 21:19:16 +0000 (+0000) Subject: kill pending transmit tasks on destroy X-Git-Tag: initial-import-from-subversion-38251~23191 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a7f8164026404f6e950d4df071cf71ef03e2ada;p=oweals%2Fgnunet.git kill pending transmit tasks on destroy --- diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index f92b94ca1..122950a74 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -1535,6 +1535,11 @@ GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle) GNUNET_free_non_null (handle->my_hello); handle->my_hello = NULL; GNUNET_ARM_stop_services (handle->cfg, handle->sched, "transport", "peerinfo", NULL); + if (NULL != handle->network_handle) + { + GNUNET_CLIENT_notify_transmit_ready_cancel (handle->network_handle); + handle->network_handle = NULL; + } if (NULL != (client = handle->client)) { #if DEBUG_TRANSPORT