summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index d0d5235..e4dc3a6 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -22,6 +22,7 @@
22#include "ot_stats.h" 22#include "ot_stats.h"
23#include "ot_clean.h" 23#include "ot_clean.h"
24#include "ot_accesslist.h" 24#include "ot_accesslist.h"
25#include "ot_fullscrape.h"
25 26
26void free_peerlist( ot_peerlist *peer_list ) { 27void free_peerlist( ot_peerlist *peer_list ) {
27 size_t i; 28 size_t i;
@@ -321,8 +322,10 @@ int trackerlogic_init( const char * const serverdir ) {
321 322
322 srandom( time(NULL) ); 323 srandom( time(NULL) );
323 324
324 clean_init( ); 325 /* Initialise background worker threads */
325 mutex_init( ); 326 mutex_init( );
327 clean_init( );
328 fullscrape_init( );
326 329
327 return 0; 330 return 0;
328} 331}
@@ -343,6 +346,9 @@ void trackerlogic_deinit( void ) {
343 } 346 }
344 mutex_bucket_unlock( bucket ); 347 mutex_bucket_unlock( bucket );
345 } 348 }
346 mutex_deinit( ); 349
350 /* Deinitialise background worker threads */
351 fullscrape_init( );
347 clean_deinit( ); 352 clean_deinit( );
353 mutex_deinit( );
348} 354}