gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35181 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r35181 - gnunet/src/ats
Date: Sun, 8 Feb 2015 22:06:29 +0100

Author: grothoff
Date: 2015-02-08 22:06:29 +0100 (Sun, 08 Feb 2015)
New Revision: 35181

Modified:
   gnunet/src/ats/plugin_ats_proportional.c
Log:
-further simplify

Modified: gnunet/src/ats/plugin_ats_proportional.c
===================================================================
--- gnunet/src/ats/plugin_ats_proportional.c    2015-02-08 20:55:25 UTC (rev 
35180)
+++ gnunet/src/ats/plugin_ats_proportional.c    2015-02-08 21:06:29 UTC (rev 
35181)
@@ -1277,22 +1277,10 @@
                             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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]