From 9a306b5be81c1595dab61579897fe83dfc584ebf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Feb 2015 21:06:29 +0000 Subject: -further simplify --- src/ats/plugin_ats_proportional.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/ats/plugin_ats_proportional.c') diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index 4833fe764..3496b8eed 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c @@ -1277,22 +1277,10 @@ GAS_proportional_address_delete (void *solver, GNUNET_NO); if (GNUNET_YES == address->active) { - /* Address was active, remove from network and update quotas*/ - address->assigned_bw_in = 0; - address->assigned_bw_out = 0; - if (NULL == - update_active_address (s, - address, - &address->peer)) - { - /* No alternative address found, disconnect peer */ - LOG (GNUNET_ERROR_TYPE_INFO, - "Disconnecting peer `%s' after deleting previous address %p\n", - GNUNET_i2s (&address->peer), - address); - s->env->bandwidth_changed_cb (s->env->cls, - address); - } + /* Address was active, remove from network and update quotas */ + update_active_address (s, + address, + &address->peer); distribute_bandwidth_in_network (s, net); } GNUNET_free (aw); -- cgit v1.2.3