gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15315 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r15315 - gnunet/src/fs
Date: Thu, 26 May 2011 00:07:58 +0200

Author: grothoff
Date: 2011-05-26 00:07:58 +0200 (Thu, 26 May 2011)
New Revision: 15315

Modified:
   gnunet/src/fs/gnunet-service-fs_cp.c
Log:
cancel task on timeout

Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c        2011-05-25 21:58:52 UTC (rev 
15314)
+++ gnunet/src/fs/gnunet-service-fs_cp.c        2011-05-25 22:07:58 UTC (rev 
15315)
@@ -1232,6 +1232,11 @@
     GNUNET_assert (0 < cp->ppd.pending_replies--);
   GNUNET_LOAD_update (cp->ppd.transmission_delay,
                      UINT64_MAX);
+  if (NULL != pth->cth)
+    {
+      GNUNET_CORE_notify_transmit_ready_cancel (pth->cth);
+      pth->cth = NULL;
+    }
   pth->gmc (pth->gmc_cls, 
            0, NULL);
   GNUNET_free (pth);
@@ -1296,7 +1301,6 @@
     cp->ppd.pending_queries++;
   else if (GNUNET_NO == is_query)
     cp->ppd.pending_replies++;
-
   pth->timeout_task = GNUNET_SCHEDULER_add_delayed (timeout,
                                                    &peer_transmit_timeout,
                                                    pth);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]