aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-05-03 17:42:37 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-05-03 17:42:37 +0000
commit367379944772c66a68e5fe0fae96e39819bce5a6 (patch)
tree7302f54b5d1e79cfd6e9892937e977f256c40dac
parentc9e06d97a9fc9c9b79ff13c9f732665b187499c0 (diff)
-fix
git-svn-id: https://gnunet.org/svn/gnunet@21253 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/peerinfo/peerinfo_api.c9
1 files changed, 6 insertions, 3 deletions
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));
+ }
}