aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-09-12 16:02:22 +0200
committerJulius Bünger <buenger@mytum.de>2018-09-12 16:03:37 +0200
commit9637cbb0ea6e3aa908245ce9dcfdc23366e8f5dd (patch)
treea515d03b2b6e458bd64b25bad5dc98388df28e9d
parent3bdb01b86cfb632e5f976e3b91c6885504de6694 (diff)
downloadgnunet-9637cbb0ea6e3aa908245ce9dcfdc23366e8f5dd.tar.gz
gnunet-9637cbb0ea6e3aa908245ce9dcfdc23366e8f5dd.zip
Decrement statistics count for pending checks
-rw-r--r--src/rps/gnunet-service-rps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index a830bfa29..3e30041e8 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -976,6 +976,10 @@ destroy_peer (struct PeerContext *peer_ctx)
976 { 976 {
977 // TODO this may leak memory 977 // TODO this may leak memory
978 peer_ctx->liveliness_check_pending = NULL; 978 peer_ctx->liveliness_check_pending = NULL;
979 GNUNET_STATISTICS_update (stats,
980 "# pending liveliness checks",
981 -1,
982 GNUNET_NO);
979 } 983 }
980 remove_pending_message (peer_ctx->pending_messages_head, 984 remove_pending_message (peer_ctx->pending_messages_head,
981 GNUNET_YES); 985 GNUNET_YES);