From: Christian Grothoff Date: Fri, 27 May 2011 13:31:46 +0000 (+0000) Subject: null out X-Git-Tag: initial-import-from-subversion-38251~18395 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=994d3b094b5c426561d4a8c4061a78a47be86446;p=oweals%2Fgnunet.git null out --- 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);