app_macro only needs a rdlock on the contexts list.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-01-02 22:00:21 +00:00
parent b5087d7743
commit 4ee7457343

View File

@@ -281,7 +281,7 @@ static int _macro_exec(struct ast_channel *chan, void *data, int exclusive)
runningdata[0] = '\0';
/* What application will execute? */
if (ast_lock_contexts()) {
if (ast_rdlock_contexts()) {
ast_log(LOG_WARNING, "Failed to lock contexts list\n");
} else {
for (c = ast_walk_contexts(NULL), e = NULL; c; c = ast_walk_contexts(c)) {