gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r13287 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r13287 - gnunet/src/core
Date: Fri, 15 Oct 2010 14:40:13 +0200

Author: grothoff
Date: 2010-10-15 14:40:13 +0200 (Fri, 15 Oct 2010)
New Revision: 13287

Modified:
   gnunet/src/core/core_api.c
Log:
style

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2010-10-15 12:11:44 UTC (rev 13286)
+++ gnunet/src/core/core_api.c  2010-10-15 12:40:13 UTC (rev 13287)
@@ -292,10 +292,10 @@
 {
   struct GNUNET_CORE_TransmitHandle *th = cls;
 
+  th->timeout_task = GNUNET_SCHEDULER_NO_TASK;
   GNUNET_CONTAINER_DLL_remove (th->ch->pending_head,
                                th->ch->pending_tail,
                                th);
-  th->timeout_task = GNUNET_SCHEDULER_NO_TASK;
 #if DEBUG_CORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Signalling timeout of request for transmission to CORE 
service\n");
@@ -327,7 +327,10 @@
   if (buf == NULL)
     {
       if (th->timeout_task != GNUNET_SCHEDULER_NO_TASK)
-        GNUNET_SCHEDULER_cancel(h->sched, th->timeout_task);
+       {
+         GNUNET_SCHEDULER_cancel(h->sched, th->timeout_task);
+         th->timeout_task = GNUNET_SCHEDULER_NO_TASK;  
+       }
       timeout_request (th, NULL);
       return 0;
     }




reply via email to

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