From: Christian Grothoff Date: Thu, 3 May 2012 17:42:37 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~13689 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49407f6d8563cdc61eab5199e23b802aeca49f66;p=oweals%2Fgnunet.git -fix --- diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 741c3429f..96857b5a8 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c @@ -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)); + } }