diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-24 15:48:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-24 15:48:11 +0000 |
commit | 9e44a0d455ddf7d5f8e2a2a36776e6dfd627e265 (patch) | |
tree | 25b605c6afadbb2be72370fe0c8bc5e814426509 /src/peerinfo | |
parent | beed9f716b7c5ceabe82846acabc66a6d33610f5 (diff) | |
download | gnunet-9e44a0d455ddf7d5f8e2a2a36776e6dfd627e265.tar.gz gnunet-9e44a0d455ddf7d5f8e2a2a36776e6dfd627e265.zip |
-cleaner
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index f82e8f793..175397c78 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -525,15 +525,13 @@ peerinfo_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
525 | "Received end of list of peers from `%s' service\n", "PEERINFO"); | 525 | "Received end of list of peers from `%s' service\n", "PEERINFO"); |
526 | GNUNET_PEERINFO_iterate_cancel (ic); | 526 | GNUNET_PEERINFO_iterate_cancel (ic); |
527 | trigger_transmit (h); | 527 | trigger_transmit (h); |
528 | if (GNUNET_NO == h->in_receive) | 528 | if ( (GNUNET_NO == h->in_receive) && |
529 | (NULL != h->ic_head) ) | ||
529 | { | 530 | { |
530 | if (NULL != h->ic_head) | 531 | h->in_receive = GNUNET_YES; |
531 | { | 532 | GNUNET_CLIENT_receive (h->client, &peerinfo_handler, h, |
532 | h->in_receive = GNUNET_YES; | 533 | GNUNET_TIME_absolute_get_remaining (h->ic_head->timeout)); |
533 | GNUNET_CLIENT_receive (h->client, &peerinfo_handler, h, | 534 | } |
534 | GNUNET_TIME_absolute_get_remaining (h->ic_head->timeout)); | ||
535 | } | ||
536 | } | ||
537 | if (NULL != cb) | 535 | if (NULL != cb) |
538 | cb (cb_cls, NULL, NULL, NULL); | 536 | cb (cb_cls, NULL, NULL, NULL); |
539 | return; | 537 | return; |