From c9cbee963aa805c74ef89c90e4dad424317fa21a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Oct 2010 12:40:13 +0000 Subject: [PATCH] style --- src/core/core_api.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/core_api.c b/src/core/core_api.c index 52a36342c..763d48a39 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -292,10 +292,10 @@ timeout_request (void *cls, { 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 @@ request_start (void *cls, size_t size, void *buf) 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; } -- 2.25.1