aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_scheduling.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-03 12:33:04 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-03 12:33:04 +0000
commitbee9a02b062e1869f2a0f6f6e6b0739f7cb2174d (patch)
tree1df30cbb15dc289d0b1bff734293dc8cfe93ae8e /src/ats/ats_api_scheduling.c
parentcb306ceb0483be233d0f374d118c6e82afd62dde (diff)
downloadgnunet-bee9a02b062e1869f2a0f6f6e6b0739f7cb2174d.tar.gz
gnunet-bee9a02b062e1869f2a0f6f6e6b0739f7cb2174d.zip
do signal disconnect to transport service, even if specific address is in_destroy
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r--src/ats/ats_api_scheduling.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 3bd4cddc7..297dcbf8b 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -481,7 +481,18 @@ process_ats_address_suggestion_message (void *cls,
481 return; 481 return;
482 if (GNUNET_YES == ar->in_destroy) 482 if (GNUNET_YES == ar->in_destroy)
483 { 483 {
484 /* ignore suggestion, as this address is dying */ 484 /* ignore suggestion, as this address is dying, unless BW is 0,
485 in that case signal 'disconnect' via BW 0 */
486 if ( (0 == ntohl (m->bandwidth_out.value__)) &&
487 (0 == ntohl (m->bandwidth_in.value__)) )
488 {
489 sh->suggest_cb (sh->suggest_cb_cls,
490 &m->peer,
491 NULL,
492 NULL,
493 m->bandwidth_out,
494 m->bandwidth_in);
495 }
485 return; 496 return;
486 } 497 }
487 if ( (NULL == ar->session) && 498 if ( (NULL == ar->session) &&