summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-06-09 16:48:26 +0000
committerRussell Bryant <russell@russellbryant.com>2008-06-09 16:48:26 +0000
commit0bee0c65b2d589ee6a1e88a1b0bdf415b5d80652 (patch)
tree1de71119772e53f635631d92e03ae9631324e019 /main/channel.c
parent90cb28f89cabc64c7e2f2ea0cfcefcee92a1aee7 (diff)
Minor formatting change to test a mantis change ...
(closes issue #12824) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@121284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 191d4f222..ea6e6183a 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1556,9 +1556,11 @@ int ast_softhangup_nolock(struct ast_channel *chan, int cause)
int ast_softhangup(struct ast_channel *chan, int cause)
{
int res;
+
ast_channel_lock(chan);
res = ast_softhangup_nolock(chan, cause);
ast_channel_unlock(chan);
+
return res;
}