Remove a duplicate lock of the audiohook lock when destroying manipulate

audiohooks.  This causes an error when we attempt to destroy the lock later
when freeing the audiohook.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2008-01-13 00:10:00 +00:00
parent d0c89ab7ed
commit b7425090c8
1 changed files with 0 additions and 1 deletions

View File

@ -357,7 +357,6 @@ int ast_audiohook_detach_list(struct ast_audiohook_list *audiohook_list)
/* Drop any manipulaters */
while ((audiohook = AST_LIST_REMOVE_HEAD(&audiohook_list->manipulate_list, list))) {
ast_audiohook_lock(audiohook);
ast_mutex_lock(&audiohook->lock);
audiohook->status = AST_AUDIOHOOK_STATUS_DONE;
ast_audiohook_unlock(audiohook);
audiohook->manipulate_callback(audiohook, NULL, NULL, 0);