aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-06-08 07:56:41 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-06-08 07:56:41 +0000
commit45cfb14b403565c06bd08c44a351d969c82f0ce2 (patch)
tree8c8742fdd6263cfa1596fe7245769932174c27fa
parent75515782d35eb20040d2d0ef678dd64ebee37ae8 (diff)
downloadgnunet-45cfb14b403565c06bd08c44a351d969c82f0ce2.tar.gz
gnunet-45cfb14b403565c06bd08c44a351d969c82f0ce2.zip
-rw-r--r--src/hostlist/hostlist-client.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index a510ec645..89abc0900 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -1187,11 +1187,17 @@ handler_disconnect (void *cls,
1187 const struct 1187 const struct
1188 GNUNET_PeerIdentity * peer) 1188 GNUNET_PeerIdentity * peer)
1189{ 1189{
1190 stat_connection_count--; 1190 if (stat_connection_count > 0)
1191 GNUNET_STATISTICS_update (stats, 1191 {
1192 gettext_noop ("# active connections"), 1192 stat_connection_count--;
1193 -1, 1193 GNUNET_STATISTICS_update (stats,
1194 GNUNET_NO); 1194 gettext_noop ("# active connections"),
1195 -1,
1196 GNUNET_NO);
1197 return;
1198 }
1199 GNUNET_break(0);
1200
1195} 1201}
1196 1202
1197/** 1203/**