mirror of
git://erdgeist.org/opentracker
synced 2025-01-14 08:50:10 +00:00
release pools only after all other services have been stopped.
This commit is contained in:
parent
f4283be677
commit
4b31dce3b3
@ -360,6 +360,14 @@ void trackerlogic_deinit( void ) {
|
|||||||
int bucket;
|
int bucket;
|
||||||
size_t j;
|
size_t j;
|
||||||
|
|
||||||
|
/* Deinitialise background worker threads */
|
||||||
|
stats_deinit( );
|
||||||
|
sync_deinit( );
|
||||||
|
livesync_init( );
|
||||||
|
accesslist_init( );
|
||||||
|
fullscrape_deinit( );
|
||||||
|
clean_deinit( );
|
||||||
|
|
||||||
/* Free all torrents... */
|
/* Free all torrents... */
|
||||||
for(bucket=0; bucket<OT_BUCKET_COUNT; ++bucket ) {
|
for(bucket=0; bucket<OT_BUCKET_COUNT; ++bucket ) {
|
||||||
ot_vector *torrents_list = mutex_bucket_lock( bucket );
|
ot_vector *torrents_list = mutex_bucket_lock( bucket );
|
||||||
@ -373,13 +381,7 @@ void trackerlogic_deinit( void ) {
|
|||||||
mutex_bucket_unlock( bucket );
|
mutex_bucket_unlock( bucket );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Deinitialise background worker threads */
|
/* Release mutexes */
|
||||||
stats_deinit( );
|
|
||||||
sync_deinit( );
|
|
||||||
livesync_init( );
|
|
||||||
accesslist_init( );
|
|
||||||
fullscrape_deinit( );
|
|
||||||
clean_deinit( );
|
|
||||||
mutex_deinit( );
|
mutex_deinit( );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user