Skip to content
Snippets Groups Projects
Commit 0bde0b9e authored by Mark Michelson's avatar Mark Michelson
Browse files

Remove extra lock from local_indicate in connected line case.

Oh, and this fixes a deadlock I was seeing.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 3166b6da
Branches
Tags
No related merge requests found
...@@ -434,7 +434,6 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da ...@@ -434,7 +434,6 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da
} }
f.subclass = condition; f.subclass = condition;
f.data.ptr = frame_data; f.data.ptr = frame_data;
ast_mutex_lock(&p->lock);
if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) { if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) {
ast_mutex_unlock(&p->lock); ast_mutex_unlock(&p->lock);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment