From d1ba1e15c1865919ed6d3cb43806e21e760039cf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 May 2011 15:48:47 +0000 Subject: [PATCH] do not remove from queue if already transmitted --- src/datastore/datastore_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 07e48931e..9738588a7 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c @@ -465,7 +465,8 @@ make_queue_entry (struct GNUNET_DATASTORE_Handle *h, pos = ret->next; while (pos != NULL) { - if (pos->max_queue < h->queue_size) + if ( (pos->max_queue < h->queue_size) && + (pos->was_transmitted == GNUNET_NO) ) { GNUNET_assert (pos->response_proc != NULL); /* move 'pos' element to head so that it will be -- 2.25.1