mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
fix channel walking problems from recent changes (bug #4494)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
app.c
1
app.c
@@ -1059,7 +1059,6 @@ int ast_app_group_match_get_count(char *groupmatch, char *category)
|
|||||||
if (test && !regexec(®exbuf, test, 0, NULL, 0))
|
if (test && !regexec(®exbuf, test, 0, NULL, 0))
|
||||||
count++;
|
count++;
|
||||||
ast_mutex_unlock(&chan->lock);
|
ast_mutex_unlock(&chan->lock);
|
||||||
chan = ast_channel_walk_locked(chan);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
regfree(®exbuf);
|
regfree(®exbuf);
|
||||||
|
|||||||
@@ -753,6 +753,7 @@ static int action_status(struct mansession *s, struct message *m)
|
|||||||
ast_state2str(c->_state), bridge, c->uniqueid, idText);
|
ast_state2str(c->_state), bridge, c->uniqueid, idText);
|
||||||
}
|
}
|
||||||
ast_mutex_unlock(&s->lock);
|
ast_mutex_unlock(&s->lock);
|
||||||
|
ast_mutex_unlock(&c->lock);
|
||||||
if (!all)
|
if (!all)
|
||||||
break;
|
break;
|
||||||
c = ast_channel_walk_locked(c);
|
c = ast_channel_walk_locked(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user