diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-15 12:40:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-15 12:40:13 +0000 |
commit | c9cbee963aa805c74ef89c90e4dad424317fa21a (patch) | |
tree | 270ce3e63ad85c1abbbf0cf87d7a325d04202620 /src/core | |
parent | 2ad4ee74907e787e651682abd488836b4aa68ca0 (diff) | |
download | gnunet-c9cbee963aa805c74ef89c90e4dad424317fa21a.tar.gz gnunet-c9cbee963aa805c74ef89c90e4dad424317fa21a.zip |
style
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 7 |
1 files 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, | |||
292 | { | 292 | { |
293 | struct GNUNET_CORE_TransmitHandle *th = cls; | 293 | struct GNUNET_CORE_TransmitHandle *th = cls; |
294 | 294 | ||
295 | th->timeout_task = GNUNET_SCHEDULER_NO_TASK; | ||
295 | GNUNET_CONTAINER_DLL_remove (th->ch->pending_head, | 296 | GNUNET_CONTAINER_DLL_remove (th->ch->pending_head, |
296 | th->ch->pending_tail, | 297 | th->ch->pending_tail, |
297 | th); | 298 | th); |
298 | th->timeout_task = GNUNET_SCHEDULER_NO_TASK; | ||
299 | #if DEBUG_CORE | 299 | #if DEBUG_CORE |
300 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 300 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
301 | "Signalling timeout of request for transmission to CORE service\n"); | 301 | "Signalling timeout of request for transmission to CORE service\n"); |
@@ -327,7 +327,10 @@ request_start (void *cls, size_t size, void *buf) | |||
327 | if (buf == NULL) | 327 | if (buf == NULL) |
328 | { | 328 | { |
329 | if (th->timeout_task != GNUNET_SCHEDULER_NO_TASK) | 329 | if (th->timeout_task != GNUNET_SCHEDULER_NO_TASK) |
330 | GNUNET_SCHEDULER_cancel(h->sched, th->timeout_task); | 330 | { |
331 | GNUNET_SCHEDULER_cancel(h->sched, th->timeout_task); | ||
332 | th->timeout_task = GNUNET_SCHEDULER_NO_TASK; | ||
333 | } | ||
331 | timeout_request (th, NULL); | 334 | timeout_request (th, NULL); |
332 | return 0; | 335 | return 0; |
333 | } | 336 | } |