Skip to content
Snippets Groups Projects
Commit b9c3f356 authored by Mark Spencer's avatar Mark Spencer
Browse files

Minor chan_features tweak

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d61401cd
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment