From 994d3b094b5c426561d4a8c4061a78a47be86446 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 May 2011 13:31:46 +0000 Subject: [PATCH] null out --- src/fs/gnunet-service-fs_pe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index 309270e9b..2ae50259d 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c @@ -371,7 +371,10 @@ GSF_plan_notify_peer_disconnect_ (const struct GSF_ConnectedPeer *cp) if (NULL != pp->pth) GSF_peer_transmit_cancel_ (pp->pth); if (GNUNET_SCHEDULER_NO_TASK != pp->task) - GNUNET_SCHEDULER_cancel (pp->task); + { + GNUNET_SCHEDULER_cancel (pp->task); + pp->task = GNUNET_SCHEDULER_NO_TASK; + } while (NULL != (rp = GNUNET_CONTAINER_heap_remove_root (pp->priority_heap))) { prd = GSF_pending_request_get_data_ (rp->pr); -- 2.25.1