From: Matthias Wachs Date: Thu, 23 Dec 2010 16:41:28 +0000 (+0000) Subject: fixed: "Error in communication with PEERINFO service" printed X-Git-Tag: initial-import-from-subversion-38251~19399 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54ee18bd5f06e071f910f92f559a4e1701de6faa;p=oweals%2Fgnunet.git fixed: "Error in communication with PEERINFO service" printed --- diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 1963d6a98..7a0877995 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c @@ -142,7 +142,7 @@ print_address (void *cls, addrlen, no_resolve, tname, - GNUNET_TIME_UNIT_SECONDS, + GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20), &process_resolved_address, pc); return GNUNET_OK; @@ -165,8 +165,6 @@ print_peer_info (void *cls, if (peer == NULL) { GNUNET_PEERINFO_disconnect (peerinfo); - fprintf (stderr, - _("Error in communication with PEERINFO service\n")); return; } if (be_quiet) @@ -224,11 +222,13 @@ run (void *cls, _("Could not access PEERINFO service. Exiting.\n")); return; } - (void) GNUNET_PEERINFO_iterate (peerinfo, + if (NULL == GNUNET_PEERINFO_iterate (peerinfo, NULL, GNUNET_TIME_relative_multiply - (GNUNET_TIME_UNIT_SECONDS, 2), - &print_peer_info, NULL); + (GNUNET_TIME_UNIT_SECONDS, 20), + &print_peer_info, NULL)) + fprintf (stderr, + _("Error in communication with PEERINFO service\n")); } else {