From: Christian Grothoff Date: Mon, 30 May 2011 15:48:47 +0000 (+0000) Subject: do not remove from queue if already transmitted X-Git-Tag: initial-import-from-subversion-38251~18379 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1ba1e15c1865919ed6d3cb43806e21e760039cf;p=oweals%2Fgnunet.git do not remove from queue if already transmitted --- 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