aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_scheduling.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-25 21:14:37 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-25 21:14:37 +0000
commit896e28ee7d8aee5fb15c905eef18a6f73e844d7f (patch)
tree95e48ba3293a1f0c1b8ebc4eede2fd3415d5622d /src/ats/ats_api_scheduling.c
parente42d7009eba71665bd5fb6b0c1decd9a0cddcb0e (diff)
downloadgnunet-896e28ee7d8aee5fb15c905eef18a6f73e844d7f.tar.gz
gnunet-896e28ee7d8aee5fb15c905eef18a6f73e844d7f.zip
-address dying doesn't depend on bandwidth suggestion of ATS, just on in_destroy flag
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r--src/ats/ats_api_scheduling.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index b1ceb4083..8d2cdc84e 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -479,9 +479,7 @@ process_ats_address_suggestion_message (void *cls,
479 } 479 }
480 if (NULL == sh->suggest_cb) 480 if (NULL == sh->suggest_cb)
481 return; 481 return;
482 if ( (GNUNET_YES == ar->in_destroy) && 482 if (GNUNET_YES == ar->in_destroy)
483 ( (0 != ntohl (m->bandwidth_out.value__)) ||
484 (0 != ntohl (m->bandwidth_in.value__)) ) )
485 { 483 {
486 /* ignore suggestion, as this address is dying */ 484 /* ignore suggestion, as this address is dying */
487 return; 485 return;
@@ -490,7 +488,7 @@ process_ats_address_suggestion_message (void *cls,
490 (GNUNET_HELLO_address_check_option (ar->address, 488 (GNUNET_HELLO_address_check_option (ar->address,
491 GNUNET_HELLO_ADDRESS_INFO_INBOUND)) ) 489 GNUNET_HELLO_ADDRESS_INFO_INBOUND)) )
492 { 490 {
493 GNUNET_break (0); 491 GNUNET_assert (0);
494 return; 492 return;
495 } 493 }
496 sh->suggest_cb (sh->suggest_cb_cls, 494 sh->suggest_cb (sh->suggest_cb_cls,