gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r11632 - gnunet/src/hostlist
Date: Tue, 8 Jun 2010 09:56:41 +0200

Author: wachs
Date: 2010-06-08 09:56:41 +0200 (Tue, 08 Jun 2010)
New Revision: 11632

Modified:
   gnunet/src/hostlist/hostlist-client.c
Log:


Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c       2010-06-08 06:57:50 UTC (rev 
11631)
+++ gnunet/src/hostlist/hostlist-client.c       2010-06-08 07:56:41 UTC (rev 
11632)
@@ -1187,11 +1187,17 @@
                    const struct
                    GNUNET_PeerIdentity * peer)
 {
-  stat_connection_count--;
-  GNUNET_STATISTICS_update (stats, 
-                           gettext_noop ("# active connections"), 
-                           -1, 
-                           GNUNET_NO);  
+  if (stat_connection_count > 0)
+  {
+    stat_connection_count--;
+    GNUNET_STATISTICS_update (stats,
+                              gettext_noop ("# active connections"),
+                              -1,
+                              GNUNET_NO);
+    return;
+  }
+  GNUNET_break(0);
+
 }
 
 /**




reply via email to

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