[Asterisk-cvs] asterisk/channels chan_features.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Thu Dec 23 06:39:41 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31301/channels

Modified Files:
	chan_features.c 
Log Message:
Minor chan_features tweak


Index: chan_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_features.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- chan_features.c	25 Nov 2004 03:19:18 -0000	1.2
+++ chan_features.c	23 Dec 2004 11:35:21 -0000	1.3
@@ -142,7 +142,10 @@
 	}
 	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);




More information about the svn-commits mailing list