diff options
author | Mark Spencer <markster@digium.com> | 2004-07-27 00:53:09 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-27 00:53:09 +0000 |
commit | 5bd8cf6cdec548241f9d9158cc1c89c051197b03 (patch) | |
tree | 1e3125df878950914335527b7d545f29815fa08f /channels | |
parent | 9e789de70380dbc83183b741e1395aa1ea00ef28 (diff) |
Swap subs before releasing lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 087035329..de3f67a74 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2882,8 +2882,9 @@ static int attempt_transfer(struct zt_pvt *p) p->subs[SUB_THREEWAY].owner->bridge->name, p->subs[SUB_REAL].owner->name); return -1; } - ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock); + /* Three-way is now the REAL */ swap_subs(p, SUB_THREEWAY, SUB_REAL); + ast_mutex_unlock(&p->subs[SUB_REAL].owner->lock); unalloc_sub(p, SUB_THREEWAY); /* Tell the caller not to hangup */ return 1; |