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
certified/1.8.6
Mark Michelson 17 years ago
parent 3166b6dac9
commit 0bde0b9ed2

@ -434,7 +434,6 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da
}
f.subclass = condition;
f.data.ptr = frame_data;
ast_mutex_lock(&p->lock);
if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) {
ast_mutex_unlock(&p->lock);
}

Loading…
Cancel
Save