Decrement statistics count for pending checks
authorJulius Bünger <buenger@mytum.de>
Wed, 12 Sep 2018 14:02:22 +0000 (16:02 +0200)
committerJulius Bünger <buenger@mytum.de>
Wed, 12 Sep 2018 14:03:37 +0000 (16:03 +0200)
src/rps/gnunet-service-rps.c

index a830bfa29038096b6a838136b3a1919b27312503..3e30041e81773c8ae73c25c8e02cd5c0cfe6d46c 100644 (file)
@@ -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);