]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove extra lock from local_indicate in connected line case.
authorMark Michelson <mmichelson@digium.com>
Mon, 1 Jun 2009 14:42:57 +0000 (14:42 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 1 Jun 2009 14:42:57 +0000 (14:42 +0000)
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

channels/chan_local.c

index 980afabdca0828080913cb0e8747d5f6f781b648..5eba90f4b7bbb8af6c90bb3b9a6c55a9bbefce48 100644 (file)
@@ -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);
                        }