gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r13527 - gnunet/src/hostlist


From: gnunet
Subject: [GNUnet-SVN] r13527 - gnunet/src/hostlist
Date: Wed, 3 Nov 2010 10:03:04 +0100

Author: wachs
Date: 2010-11-03 10:03:04 +0100 (Wed, 03 Nov 2010)
New Revision: 13527

Modified:
   gnunet/src/hostlist/hostlist-client.c
Log:
removed assertion since you can not blame hostlist-client how often core 
dis/connect handlers are called
instead code just ensures that the value is >= 0 

Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c       2010-11-03 00:04:43 UTC (rev 
13526)
+++ gnunet/src/hostlist/hostlist-client.c       2010-11-03 09:03:04 UTC (rev 
13527)
@@ -1177,12 +1177,18 @@
                    const struct
                    GNUNET_PeerIdentity * peer)
 {
-  GNUNET_assert (stat_connection_count > 0);
+  /* GNUNET_assert (stat_connection_count > 0); */
+  if (stat_connection_count == 0)
+  {
+      GNUNET_break_op (0);
+      return;
+  }
+
   stat_connection_count--;
   GNUNET_STATISTICS_update (stats,
-                            gettext_noop ("# active connections"),
-                            -1,
-                            GNUNET_NO);
+                                                       gettext_noop ("# active 
connections"),
+                                                       -1,
+                                                       GNUNET_NO);
 }
 
 /**




reply via email to

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