summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-02-20 20:00:49 +0000
committerMark Spencer <markster@digium.com>2004-02-20 20:00:49 +0000
commitde6910a6b6d066e272f8262ba259e08f58c47005 (patch)
tree50e86939fb7f5cecbcfd8467cb8a50a93caeb472 /channel.c
parentce8778c01ba41ef2a7f87cda8213f01a75e6ec0a (diff)
Fix minor ordering issue (bug #981)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 ef966d21b..8a156df96 100755
--- a/channel.c
+++ b/channel.c
@@ -630,8 +630,8 @@ int ast_hangup(struct ast_channel *chan)
/* If this channel is one which will be masqueraded into something,
mark it as a zombie already, so we know to free it later */
if (chan->masqr) {
- ast_mutex_unlock(&chan->lock);
chan->zombie=1;
+ ast_mutex_unlock(&chan->lock);
return 0;
}
free_translation(chan);