summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index d7fca69..9366cd1 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -376,13 +376,6 @@ void trackerlogic_deinit( void ) {
376 int bucket; 376 int bucket;
377 size_t j; 377 size_t j;
378 378
379 /* Deinitialise background worker threads */
380 stats_deinit( );
381 livesync_init( );
382 accesslist_init( );
383 fullscrape_deinit( );
384 clean_deinit( );
385
386 /* Free all torrents... */ 379 /* Free all torrents... */
387 for(bucket=0; bucket<OT_BUCKET_COUNT; ++bucket ) { 380 for(bucket=0; bucket<OT_BUCKET_COUNT; ++bucket ) {
388 ot_vector *torrents_list = mutex_bucket_lock( bucket ); 381 ot_vector *torrents_list = mutex_bucket_lock( bucket );
@@ -396,6 +389,12 @@ void trackerlogic_deinit( void ) {
396 mutex_bucket_unlock( bucket ); 389 mutex_bucket_unlock( bucket );
397 } 390 }
398 391
392 /* Deinitialise background worker threads */
393 stats_deinit( );
394 livesync_deinit( );
395 accesslist_deinit( );
396 fullscrape_deinit( );
397 clean_deinit( );
399 /* Release mutexes */ 398 /* Release mutexes */
400 mutex_deinit( ); 399 mutex_deinit( );
401} 400}