-fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 3 May 2012 17:42:37 +0000 (17:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 3 May 2012 17:42:37 +0000 (17:42 +0000)
src/peerinfo/peerinfo_api.c

index 741c3429f148079214028c0f7572d11d3e08a772..96857b5a836f05c9fafcf0ea9f63aa60e3671281 100644 (file)
@@ -577,10 +577,13 @@ iterator_start_receive (void *cls, const char *emsg)
   }
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Waiting for response from `%s' service.\n",
        "PEERINFO");
-  h->in_receive = GNUNET_YES;
   ic->in_receive = GNUNET_YES;
-  GNUNET_CLIENT_receive (h->client, &peerinfo_handler, ic,
-                         GNUNET_TIME_absolute_get_remaining (ic->timeout));
+  if (GNUNET_NO == h->in_receive)
+  {
+    h->in_receive = GNUNET_YES;
+    GNUNET_CLIENT_receive (h->client, &peerinfo_handler, ic,
+                          GNUNET_TIME_absolute_get_remaining (ic->timeout));
+  }
 }