From: Matthias Wachs Date: Wed, 9 May 2012 13:32:11 +0000 (+0000) Subject: fix for mantis 2330#c5818 X-Git-Tag: initial-import-from-subversion-38251~13571 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2063b459527ebc330067b1fbe16abe963fad80a2;p=oweals%2Fgnunet.git fix for mantis 2330#c5818 GNUNET_SERVER_notification_context_destroy does not cancel transmit_ready --- diff --git a/src/util/server_nc.c b/src/util/server_nc.c index f6b0d8e22..6e0181ecb 100644 --- a/src/util/server_nc.c +++ b/src/util/server_nc.c @@ -236,6 +236,11 @@ GNUNET_SERVER_notification_context_destroy (struct GNUNET_CONTAINER_DLL_remove (nc->clients_head, nc->clients_tail, pos); + if (NULL != pos->th) + { + GNUNET_SERVER_notify_transmit_ready_cancel(pos->th); + pos->th = NULL; + } GNUNET_SERVER_client_drop (pos->client); while (NULL != (pml = pos->pending_head)) {