diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-30 12:55:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-30 12:55:07 +0000 |
commit | d32ce3a1d0528519708e2721d752b292aa7ac0a3 (patch) | |
tree | 90d9f4b57a5eeb970f44b5a7ae970f53073d0ce8 /src/ats | |
parent | b5af62e0dff6b748db0c4da373b926451b45055f (diff) | |
download | gnunet-d32ce3a1d0528519708e2721d752b292aa7ac0a3.tar.gz gnunet-d32ce3a1d0528519708e2721d752b292aa7ac0a3.zip |
fix #4663
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/ats_api_connectivity.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ats/ats_api_connectivity.c b/src/ats/ats_api_connectivity.c index fa0c32f49..241e5f93c 100644 --- a/src/ats/ats_api_connectivity.c +++ b/src/ats/ats_api_connectivity.c | |||
@@ -302,9 +302,6 @@ GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, | |||
302 | { | 302 | { |
303 | struct GNUNET_ATS_ConnectivitySuggestHandle *s; | 303 | struct GNUNET_ATS_ConnectivitySuggestHandle *s; |
304 | 304 | ||
305 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
306 | "Requesting ATS to suggest address for `%s'\n", | ||
307 | GNUNET_i2s (peer)); | ||
308 | s = GNUNET_new (struct GNUNET_ATS_ConnectivitySuggestHandle); | 305 | s = GNUNET_new (struct GNUNET_ATS_ConnectivitySuggestHandle); |
309 | s->ch = ch; | 306 | s->ch = ch; |
310 | s->id = *peer; | 307 | s->id = *peer; |
@@ -315,9 +312,15 @@ GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, | |||
315 | s, | 312 | s, |
316 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)) | 313 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)) |
317 | { | 314 | { |
318 | GNUNET_break (0); | 315 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
316 | "Not requesting ATS to suggest address for `%s', request already pending\n", | ||
317 | GNUNET_i2s (peer)); | ||
318 | GNUNET_free (s); | ||
319 | return NULL; | 319 | return NULL; |
320 | } | 320 | } |
321 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
322 | "Requesting ATS to suggest address for `%s'\n", | ||
323 | GNUNET_i2s (peer)); | ||
321 | if (NULL == ch->mq) | 324 | if (NULL == ch->mq) |
322 | return s; | 325 | return s; |
323 | (void) transmit_suggestion (ch, | 326 | (void) transmit_suggestion (ch, |