aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-11-03 09:03:04 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-11-03 09:03:04 +0000
commit1f5e1eed00f160ddbc1e82976cf639519f3fce61 (patch)
tree1bf15479a506ea36bcbc6f132964796fa86e17bd
parent566dc91da7e71260b57502a2d9f8bb872809531a (diff)
downloadgnunet-1f5e1eed00f160ddbc1e82976cf639519f3fce61.tar.gz
gnunet-1f5e1eed00f160ddbc1e82976cf639519f3fce61.zip
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
-rw-r--r--src/hostlist/hostlist-client.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index 789ae751f..418c36309 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -1177,12 +1177,18 @@ handler_disconnect (void *cls,
1177 const struct 1177 const struct
1178 GNUNET_PeerIdentity * peer) 1178 GNUNET_PeerIdentity * peer)
1179{ 1179{
1180 GNUNET_assert (stat_connection_count > 0); 1180 /* GNUNET_assert (stat_connection_count > 0); */
1181 if (stat_connection_count == 0)
1182 {
1183 GNUNET_break_op (0);
1184 return;
1185 }
1186
1181 stat_connection_count--; 1187 stat_connection_count--;
1182 GNUNET_STATISTICS_update (stats, 1188 GNUNET_STATISTICS_update (stats,
1183 gettext_noop ("# active connections"), 1189 gettext_noop ("# active connections"),
1184 -1, 1190 -1,
1185 GNUNET_NO); 1191 GNUNET_NO);
1186} 1192}
1187 1193
1188/** 1194/**