summaryrefslogtreecommitdiff
path: root/ot_clean.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_clean.c')
-rw-r--r--ot_clean.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ot_clean.c b/ot_clean.c
index 6024c08..4c03416 100644
--- a/ot_clean.c
+++ b/ot_clean.c
@@ -16,6 +16,7 @@
16#include "ot_mutex.h" 16#include "ot_mutex.h"
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 20
20/* Returns amount of removed peers */ 21/* Returns amount of removed peers */
21static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t timedout, int *removed_seeders ) { 22static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t timedout, int *removed_seeders ) {
@@ -121,6 +122,7 @@ static void * clean_worker( void * args ) {
121 return NULL; 122 return NULL;
122 usleep( OT_CLEAN_SLEEP ); 123 usleep( OT_CLEAN_SLEEP );
123 } 124 }
125 stats_cleanup();
124 } 126 }
125 return NULL; 127 return NULL;
126} 128}