-dce
[oweals/gnunet.git] / 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))
     {