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
This commit is contained in:
Mark Michelson
2009-06-01 14:42:57 +00:00
parent 3166b6dac9
commit 0bde0b9ed2

View File

@@ -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);
} }