mod_http_cache: CID 1025858: Thread deadlock (ORDER_REVERSAL)

This commit is contained in:
Chris Rienzo 2014-04-30 10:06:42 -04:00
parent e98045841e
commit c36e63026c
1 changed files with 1 additions and 0 deletions

View File

@ -1702,6 +1702,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_http_cache_shutdown)
gcache.shutdown = 1;
switch_queue_interrupt_all(gcache.prefetch_queue);
switch_thread_rwlock_wrlock(gcache.shutdown_lock);
switch_thread_rwlock_unlock(gcache.shutdown_lock);
url_cache_clear(&gcache, NULL);
switch_core_hash_destroy(&gcache.map);