From 2063b459527ebc330067b1fbe16abe963fad80a2 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 9 May 2012 13:32:11 +0000 Subject: fix for mantis 2330#c5818 GNUNET_SERVER_notification_context_destroy does not cancel transmit_ready --- src/util/server_nc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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)) { -- cgit v1.2.3