mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Minor chan_features tweak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -142,7 +142,10 @@ static void swap_subs(struct feature_pvt *p, int a, int b)
|
|||||||
}
|
}
|
||||||
if (p->subs[b].owner) {
|
if (p->subs[b].owner) {
|
||||||
for (x=0;x<AST_MAX_FDS;x++)
|
for (x=0;x<AST_MAX_FDS;x++)
|
||||||
p->subs[b].owner->fds[x] = p->subchan->fds[x];
|
if (b)
|
||||||
|
p->subs[b].owner->fds[x] = -1;
|
||||||
|
else
|
||||||
|
p->subs[b].owner->fds[x] = p->subchan->fds[x];
|
||||||
}
|
}
|
||||||
wakeup_sub(p, a);
|
wakeup_sub(p, a);
|
||||||
wakeup_sub(p, b);
|
wakeup_sub(p, b);
|
||||||
|
Reference in New Issue
Block a user