From: Julius Bünger Date: Wed, 12 Sep 2018 14:02:22 +0000 (+0200) Subject: Decrement statistics count for pending checks X-Git-Tag: v0.11.0~254 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9637cbb0ea6e3aa908245ce9dcfdc23366e8f5dd;p=oweals%2Fgnunet.git Decrement statistics count for pending checks --- 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) { // TODO this may leak memory peer_ctx->liveliness_check_pending = NULL; + GNUNET_STATISTICS_update (stats, + "# pending liveliness checks", + -1, + GNUNET_NO); } remove_pending_message (peer_ctx->pending_messages_head, GNUNET_YES);