mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
pbx_dundi only needs a rdlock on the contexts list.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3644,7 +3644,7 @@ static void dundi_precache_full(void)
|
||||
|
||||
AST_LIST_TRAVERSE(&mappings, cur, list) {
|
||||
ast_log(LOG_NOTICE, "Should precache context '%s'\n", cur->dcontext);
|
||||
ast_lock_contexts();
|
||||
ast_rdlock_contexts();
|
||||
con = ast_walk_contexts(NULL);
|
||||
while (con) {
|
||||
if (!strcasecmp(cur->lcontext, ast_get_context_name(con))) {
|
||||
|
Reference in New Issue
Block a user