From 367379944772c66a68e5fe0fae96e39819bce5a6 Mon Sep 17 00:00:00 2001 From: grothoff Date: Thu, 3 May 2012 17:42:37 +0000 Subject: -fix git-svn-id: https://gnunet.org/svn/gnunet@21253 140774ce-b5e7-0310-ab8b-a85725594a96 --- src/peerinfo/peerinfo_api.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/peerinfo') diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 741c3429f1..96857b5a83 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)); + } } -- cgit v1.2.3-18-g5258