diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2022-11-24 16:38:26 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-11-24 16:38:26 +0100 |
commit | f62398c7483e8ce9122e86cc2a09abda5f3745e3 (patch) | |
tree | 0339deeaa7e6050bf99c57cdb4b57368b23b401b /ot_clean.c | |
parent | be825f57597b0e9dcf07d257e93f03e30935f7db (diff) |
Clean accesslists every five minutes
Diffstat (limited to 'ot_clean.c')
-rw-r--r-- | ot_clean.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -17,6 +17,7 @@ | |||
17 | #include "ot_vector.h" | 17 | #include "ot_vector.h" |
18 | #include "ot_clean.h" | 18 | #include "ot_clean.h" |
19 | #include "ot_stats.h" | 19 | #include "ot_stats.h" |
20 | #include "ot_accesslist.h" | ||
20 | 21 | ||
21 | /* Returns amount of removed peers */ | 22 | /* Returns amount of removed peers */ |
22 | static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t timedout, int *removed_seeders ) { | 23 | 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 ) { | |||
123 | usleep( OT_CLEAN_SLEEP ); | 124 | usleep( OT_CLEAN_SLEEP ); |
124 | } | 125 | } |
125 | stats_cleanup(); | 126 | stats_cleanup(); |
127 | #ifdef WANT_ACCESSLIST | ||
128 | accesslist_cleanup(); | ||
129 | #endif | ||
126 | } | 130 | } |
127 | return NULL; | 131 | return NULL; |
128 | } | 132 | } |