mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Fix a silly deadlock in res_features that I found while debugging on one of
blitzrage's test machines. It was one of the situations where he was seeing hung channels, and may be the cause of some of the reports from other people. (related to issue #9235) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1083,8 +1083,10 @@ static int ast_feature_interpret(struct ast_channel *chan, struct ast_channel *p
|
||||
|
||||
while ((tok = strsep(&tmp, "#"))) {
|
||||
AST_LIST_LOCK(&feature_list);
|
||||
if (!(feature = find_dynamic_feature(tok)))
|
||||
if (!(feature = find_dynamic_feature(tok))) {
|
||||
AST_LIST_UNLOCK(&feature_list);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Feature is up for consideration */
|
||||
if (!strcmp(feature->exten, code)) {
|
||||
|
Reference in New Issue
Block a user