From: Christian Grothoff Date: Thu, 20 May 2010 11:08:16 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~21636 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06b6647295added400ee21ae78347865c54b1679;p=oweals%2Fgnunet.git fix --- diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 60a5b7479..dfbdd4392 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c @@ -562,6 +562,11 @@ process_queue (struct GNUNET_DATASTORE_Handle *h) return; /* request pending */ if (h->client == NULL) return; /* waiting for reconnect */ +#if DEBUG_DATASTORE + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Transmitting %u bytes request to datastore\n", + qe->message_size); +#endif h->th = GNUNET_CLIENT_notify_transmit_ready (h->client, qe->message_size, GNUNET_TIME_absolute_get_remaining (qe->timeout), @@ -1263,6 +1268,7 @@ GNUNET_DATASTORE_cancel (struct GNUNET_DATASTORE_QueueEntry *qe) if (qe->response_proc == &process_result_message) { qe->qc.rc.iter = NULL; + GNUNET_DATASTORE_get_next (h, GNUNET_YES); return; } reconnect = GNUNET_YES;