aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-14 18:46:02 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-14 18:46:02 +0000
commit86bafe4b347369c69c64e125ed069dc432e0a9e6 (patch)
tree3b8159072b998f1dff0e57d5efa3078dd40411cc /channel.c
parent5b7c567e7e604489a135c2e93c48bdaa1a32509e (diff)
Don't hold lock in indication longer than we need it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index dd80cc85e..3fe2a02d7 100755
--- a/channel.c
+++ b/channel.c
@@ -1153,6 +1153,7 @@ int ast_indicate(struct ast_channel *chan, int condition)
ast_mutex_lock(&chan->lock);
if (chan->pvt->indicate)
res = chan->pvt->indicate(chan, condition);
+ ast_mutex_unlock(&chan->lock);
if (!chan->pvt->indicate || res) {
/*
* Device does not support (that) indication, lets fake
@@ -1185,7 +1186,6 @@ int ast_indicate(struct ast_channel *chan, int condition)
}
else ast_playtones_stop(chan);
}
- ast_mutex_unlock(&chan->lock);
return res;
}