aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_macro.c')
-rw-r--r--apps/app_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c
index cf47df024..7906ed4b2 100644
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -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)) {