mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "res_sorcery_memory_cache.c: Replace inline code with function."
This commit is contained in:
@@ -1063,9 +1063,7 @@ static void sorcery_memory_cache_close(void *data)
|
||||
* a prolonged period of time.
|
||||
*/
|
||||
ao2_wrlock(cache->objects);
|
||||
ao2_callback(cache->objects, OBJ_UNLINK | OBJ_NOLOCK | OBJ_NODATA | OBJ_MULTIPLE,
|
||||
NULL, NULL);
|
||||
AST_SCHED_DEL_UNREF(sched, cache->expire_id, ao2_ref(cache, -1));
|
||||
remove_all_from_cache(cache);
|
||||
ao2_unlock(cache->objects);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user