aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-08 19:56:19 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-08 19:56:19 +0000
commitbc7447f2dcafb3cb5cc69477a64ca2a5f7c8d716 (patch)
treef35aec869c7393fb4566ebe00a31790d590a0c15 /src/ats
parent0148b9aa02a7ce30736ba802bd6aad7d0d3a484c (diff)
downloadgnunet-bc7447f2dcafb3cb5cc69477a64ca2a5f7c8d716.tar.gz
gnunet-bc7447f2dcafb3cb5cc69477a64ca2a5f7c8d716.zip
do not force disconnect just because client does not request address anymore
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/plugin_ats_proportional.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 8159b9d7f..1b9b30654 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -1103,29 +1103,14 @@ GAS_proportional_stop_get_preferred_address (void *solver,
1103 struct GAS_PROPORTIONAL_Handle *s = solver; 1103 struct GAS_PROPORTIONAL_Handle *s = solver;
1104 struct ATS_Address *cur; 1104 struct ATS_Address *cur;
1105 struct AddressWrapper *asi; 1105 struct AddressWrapper *asi;
1106 struct Network *cur_net;
1107 1106
1108 cur = get_active_address (s, 1107 cur = get_active_address (s,
1109 peer); 1108 peer);
1110 if (NULL == cur) 1109 if (NULL == cur)
1111 return; 1110 return;
1112 LOG (GNUNET_ERROR_TYPE_INFO,
1113 "Disabling %s address %p for peer `%s'\n",
1114 (GNUNET_NO == cur->active) ? "inactive" : "active",
1115 cur,
1116 GNUNET_i2s (&cur->peer));
1117
1118 /* Disabling current address */
1119 asi = cur->solver_information; 1111 asi = cur->solver_information;
1120 cur_net = asi->network;
1121 asi->activated = GNUNET_TIME_UNIT_ZERO_ABS;
1122 cur->active = GNUNET_NO; /* No active any longer */
1123 cur->assigned_bw_in = 0; /* no bandwidth assigned */
1124 cur->assigned_bw_out = 0; /* no bandwidth assigned */
1125 address_decrement_active (s,
1126 cur_net);
1127 distribute_bandwidth_in_network (s, 1112 distribute_bandwidth_in_network (s,
1128 cur_net); 1113 asi->network);
1129} 1114}
1130 1115
1131 1116