aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_agent.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-17 22:59:36 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-17 22:59:36 +0000
commitb9f37c0e992c5cad53a18b2dc1fdc80e67f3f108 (patch)
tree1e819c9ba9585ae73612c3fd4abae94e5c9cd11a /channels/chan_agent.c
parentcb3876e55fa1af26516fc0304f91434eaa74ac70 (diff)
convert various places that access the channel lock directly to use the channel lock wrappers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82728 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r--channels/chan_agent.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index 3ff994473..19df9f896 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -1183,10 +1183,8 @@ static int check_availability(struct agent_pvt *newlyavailable, int needlock)
ast_copy_string(parent->context, chan->context, sizeof(parent->context));
/* Go ahead and mark the channel as a zombie so that masquerade will
destroy it for us, and we need not call ast_hangup */
- ast_mutex_lock(&parent->lock);
ast_set_flag(chan, AST_FLAG_ZOMBIE);
ast_channel_masquerade(parent, chan);
- ast_mutex_unlock(&parent->lock);
p->abouttograb = 0;
} else {
ast_debug(1, "Sneaky, parent disappeared in the mean time...\n");