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
1.4
Russell Bryant 19 years ago
parent ad3c504b10
commit 1f9898d8bd

@ -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)) {

Loading…
Cancel
Save