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:
Mark Spencer
2004-12-23 11:35:21 +00:00
parent d61401cde2
commit b9c3f3567a

View File

@@ -142,7 +142,10 @@ static void swap_subs(struct feature_pvt *p, int a, int b)
}
if (p->subs[b].owner) {
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, b);