null out
authorChristian Grothoff <christian@grothoff.org>
Fri, 27 May 2011 13:31:46 +0000 (13:31 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 27 May 2011 13:31:46 +0000 (13:31 +0000)
src/fs/gnunet-service-fs_pe.c

index 309270e9b769605e4b0b4768e427ff16f177124c..2ae50259d9f2f3c855e54b9542668f47064df09f 100644 (file)
@@ -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);