fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 20 May 2010 11:08:16 +0000 (11:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 20 May 2010 11:08:16 +0000 (11:08 +0000)
src/datastore/datastore_api.c

index 60a5b7479dd97c43c6350109046843a55e40d71e..dfbdd439248315840fb9f00ccebfdb6db9d9b0c8 100644 (file)
@@ -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;