skip here
authorChristian Grothoff <christian@grothoff.org>
Tue, 31 May 2011 16:12:40 +0000 (16:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 31 May 2011 16:12:40 +0000 (16:12 +0000)
src/datastore/datastore_api.c

index 350c3563873c820b8c299441f1bfc1a4c76cb147..a3196530eab54a1f65c0dc9bf65e8370b7719f7f 100644 (file)
@@ -585,6 +585,12 @@ receive_cb (void *cls,
   struct GNUNET_DATASTORE_QueueEntry *qe;
 
   h->in_receive = GNUNET_NO;
+  if (h->skip_next_messages > 0)
+    {
+      h->skip_next_messages--;
+      process_queue (h);
+      return;
+   } 
   if (NULL == (qe = h->queue_head))
     {
       GNUNET_break (0);
@@ -778,12 +784,6 @@ process_status_message (void *cls,
   int32_t status;
   int was_transmitted;
 
-  if (h->skip_next_messages > 0)
-    {
-      h->skip_next_messages--;
-      process_queue (h);
-      return;
-   } 
   if (NULL == (qe = h->queue_head))
     {
       GNUNET_break (0);
@@ -1252,12 +1252,6 @@ process_result_message (void *cls,
   struct ResultContext rc;
   const struct DataMessage *dm;
 
-  if (h->skip_next_messages > 0)
-    {
-      h->skip_next_messages--;
-      process_queue (h);
-      return;
-    }
   if (msg == NULL)
     {
       qe = h->queue_head;