From 6d099bc6b713b5a5c0ece6c1dc9a94b8fa751c8a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 May 2011 16:03:05 +0000 Subject: [PATCH] only request next transmission if not already ready --- src/core/core_api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/core_api.c b/src/core/core_api.c index 4ffd07d9e..3dfc193dd 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -1662,7 +1662,10 @@ GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle, "Transmission request added to queue\n"); #endif if ( (pr->pending_head == th) && - (pr->ntr_task == GNUNET_SCHEDULER_NO_TASK) ) + (pr->ntr_task == GNUNET_SCHEDULER_NO_TASK) && + (pr->next == NULL) && + (pr->prev == NULL) && + (handle->ready_peer_head != pr) ) pr->ntr_task = GNUNET_SCHEDULER_add_now (&run_request_next_transmission, pr); return th; } -- 2.25.1