From f62398c7483e8ce9122e86cc2a09abda5f3745e3 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 24 Nov 2022 16:38:26 +0100 Subject: Clean accesslists every five minutes --- ot_clean.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ot_clean.c') diff --git a/ot_clean.c b/ot_clean.c index 4c03416..139bedb 100644 --- a/ot_clean.c +++ b/ot_clean.c @@ -17,6 +17,7 @@ #include "ot_vector.h" #include "ot_clean.h" #include "ot_stats.h" +#include "ot_accesslist.h" /* Returns amount of removed peers */ static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t timedout, int *removed_seeders ) { @@ -123,6 +124,9 @@ static void * clean_worker( void * args ) { usleep( OT_CLEAN_SLEEP ); } stats_cleanup(); +#ifdef WANT_ACCESSLIST + accesslist_cleanup(); +#endif } return NULL; } -- cgit v1.2.3