diff options
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 20 |
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); |