aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-08 21:06:29 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-08 21:06:29 +0000
commit9a306b5be81c1595dab61579897fe83dfc584ebf (patch)
tree8f28430de34a513e3d7b9cd080156831303526c6 /src
parente14164d8be56720436ec4bc736c29443d8513af4 (diff)
-further simplify
Diffstat (limited to 'src')
-rw-r--r--src/ats/plugin_ats_proportional.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 4833fe764e..3496b8eedd 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);