fix for mantis 2330#c5818
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 May 2012 13:32:11 +0000 (13:32 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 May 2012 13:32:11 +0000 (13:32 +0000)
GNUNET_SERVER_notification_context_destroy does not cancel transmit_ready

src/util/server_nc.c

index f6b0d8e22f4c62583f37e3c8068d1ec00fda5706..6e0181ecbfa5d1e05b0ef0e1229595353b3f4e24 100644 (file)
@@ -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))
     {