projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7551578
)
(no commit message)
author
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 8 Jun 2010 07:56:41 +0000
(07:56 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 8 Jun 2010 07:56:41 +0000
(07:56 +0000)
src/hostlist/hostlist-client.c
patch
|
blob
|
history
diff --git
a/src/hostlist/hostlist-client.c
b/src/hostlist/hostlist-client.c
index a510ec6450bf8bab48b0fb11b5b8f9d3a65b14fc..89abc09006d9b77ea11e217e96bfc816bdece4d1 100644
(file)
--- a/
src/hostlist/hostlist-client.c
+++ b/
src/hostlist/hostlist-client.c
@@
-1187,11
+1187,17
@@
handler_disconnect (void *cls,
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);
+
}
/**