do not force disconnect just because client does not request address anymore
authorChristian Grothoff <christian@grothoff.org>
Sun, 8 Feb 2015 19:56:19 +0000 (19:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 8 Feb 2015 19:56:19 +0000 (19:56 +0000)
src/ats/plugin_ats_proportional.c

index 8159b9d7fd1b1401b80fb34f525edcabfd5a555f..1b9b306540400f855d3cb143e607c3a0563fde01 100644 (file)
@@ -1103,29 +1103,14 @@ GAS_proportional_stop_get_preferred_address (void *solver,
   struct GAS_PROPORTIONAL_Handle *s = solver;
   struct ATS_Address *cur;
   struct AddressWrapper *asi;
-  struct Network *cur_net;
 
   cur = get_active_address (s,
                             peer);
   if (NULL == cur)
     return;
-  LOG (GNUNET_ERROR_TYPE_INFO,
-       "Disabling %s address %p for peer `%s'\n",
-       (GNUNET_NO == cur->active) ? "inactive" : "active",
-       cur,
-       GNUNET_i2s (&cur->peer));
-
-  /* Disabling current address */
   asi = cur->solver_information;
-  cur_net = asi->network;
-  asi->activated = GNUNET_TIME_UNIT_ZERO_ABS;
-  cur->active = GNUNET_NO; /* No active any longer */
-  cur->assigned_bw_in = 0; /* no bandwidth assigned */
-  cur->assigned_bw_out = 0; /* no bandwidth assigned */
-  address_decrement_active (s,
-                            cur_net);
   distribute_bandwidth_in_network (s,
-                                   cur_net);
+                                   asi->network);
 }