diff options
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 12 |
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, | |||
142 | addrlen, | 142 | addrlen, |
143 | no_resolve, | 143 | no_resolve, |
144 | tname, | 144 | tname, |
145 | GNUNET_TIME_UNIT_SECONDS, | 145 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20), |
146 | &process_resolved_address, | 146 | &process_resolved_address, |
147 | pc); | 147 | pc); |
148 | return GNUNET_OK; | 148 | return GNUNET_OK; |
@@ -165,8 +165,6 @@ print_peer_info (void *cls, | |||
165 | if (peer == NULL) | 165 | if (peer == NULL) |
166 | { | 166 | { |
167 | GNUNET_PEERINFO_disconnect (peerinfo); | 167 | GNUNET_PEERINFO_disconnect (peerinfo); |
168 | fprintf (stderr, | ||
169 | _("Error in communication with PEERINFO service\n")); | ||
170 | return; | 168 | return; |
171 | } | 169 | } |
172 | if (be_quiet) | 170 | if (be_quiet) |
@@ -224,11 +222,13 @@ run (void *cls, | |||
224 | _("Could not access PEERINFO service. Exiting.\n")); | 222 | _("Could not access PEERINFO service. Exiting.\n")); |
225 | return; | 223 | return; |
226 | } | 224 | } |
227 | (void) GNUNET_PEERINFO_iterate (peerinfo, | 225 | if (NULL == GNUNET_PEERINFO_iterate (peerinfo, |
228 | NULL, | 226 | NULL, |
229 | GNUNET_TIME_relative_multiply | 227 | GNUNET_TIME_relative_multiply |
230 | (GNUNET_TIME_UNIT_SECONDS, 2), | 228 | (GNUNET_TIME_UNIT_SECONDS, 20), |
231 | &print_peer_info, NULL); | 229 | &print_peer_info, NULL)) |
230 | fprintf (stderr, | ||
231 | _("Error in communication with PEERINFO service\n")); | ||
232 | } | 232 | } |
233 | else | 233 | else |
234 | { | 234 | { |