summaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-12-23 16:41:28 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-12-23 16:41:28 +0000
commit54ee18bd5f06e071f910f92f559a4e1701de6faa (patch)
tree46d0a05e6b897dc19e7d327d1320c746d53fbce7 /src/peerinfo-tool
parentebf8ce753640b069180eadd7abf47d9a9a371a29 (diff)
fixed: "Error in communication with PEERINFO service" printed
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c12
1 files changed, 6 insertions, 6 deletions
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
{