gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r15865 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r15865 - gnunet/src/transport
Date: Thu, 7 Jul 2011 10:37:36 +0200

Author: wachs
Date: 2011-07-07 10:37:36 +0200 (Thu, 07 Jul 2011)
New Revision: 15865

Modified:
   gnunet/src/transport/gnunet-service-transport.c
Log:
ats updates & peer disconnects


Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2011-07-07 08:26:43 UTC 
(rev 15864)
+++ gnunet/src/transport/gnunet-service-transport.c     2011-07-07 08:37:36 UTC 
(rev 15865)
@@ -2430,6 +2430,8 @@
     }
   GNUNET_free_non_null(pos->ressources);
   GNUNET_free_non_null(pos->quality);
+  if (ats != NULL)
+    ats->stat.recreate_problem = GNUNET_YES;
   if (GNUNET_YES != pos->connected)
     {
       /* nothing else to do, connection was never up... */
@@ -2437,8 +2439,7 @@
       return; 
     }
   GNUNET_free (pos);
-  if (ats != NULL)
-    ats->stat.recreate_problem = GNUNET_YES;
+
   if (nl->received_pong == GNUNET_NO)
     {
       GNUNET_STATISTICS_update (stats,
@@ -4816,6 +4817,9 @@
   if (GNUNET_YES == n->received_pong)
     notify_clients_disconnect (&n->id);
 
+  if (ats != NULL)
+      ats->stat.recreate_problem = GNUNET_YES;
+
   /* clean up all plugins, cancel connections and pending transmissions */
   while (NULL != (rpos = n->plugins))
     {
@@ -4845,8 +4849,6 @@
          GNUNET_free(peer_pos->quality);
          peer_pos->ressources = NULL;
          GNUNET_free(peer_pos);
-         if (ats != NULL)
-           ats->stat.recreate_problem = GNUNET_YES;
         }
       GNUNET_free (rpos);
     }




reply via email to

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