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)
downloadgnunet-9a306b5be81c1595dab61579897fe83dfc584ebf.tar.gz
gnunet-9a306b5be81c1595dab61579897fe83dfc584ebf.zip
-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 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,
1277 GNUNET_NO); 1277 GNUNET_NO);
1278 if (GNUNET_YES == address->active) 1278 if (GNUNET_YES == address->active)
1279 { 1279 {
1280 /* Address was active, remove from network and update quotas*/ 1280 /* Address was active, remove from network and update quotas */
1281 address->assigned_bw_in = 0; 1281 update_active_address (s,
1282 address->assigned_bw_out = 0; 1282 address,
1283 if (NULL == 1283 &address->peer);
1284 update_active_address (s,
1285 address,
1286 &address->peer))
1287 {
1288 /* No alternative address found, disconnect peer */
1289 LOG (GNUNET_ERROR_TYPE_INFO,
1290 "Disconnecting peer `%s' after deleting previous address %p\n",
1291 GNUNET_i2s (&address->peer),
1292 address);
1293 s->env->bandwidth_changed_cb (s->env->cls,
1294 address);
1295 }
1296 distribute_bandwidth_in_network (s, net); 1284 distribute_bandwidth_in_network (s, net);
1297 } 1285 }
1298 GNUNET_free (aw); 1286 GNUNET_free (aw);