[Asterisk-cvs] asterisk channel.c,1.83,1.84

markster at lists.digium.com markster at lists.digium.com
Fri Mar 5 13:41:35 CST 2004


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

Modified Files:
	channel.c 
Log Message:
And of course return us as a winner


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- channel.c	5 Mar 2004 18:31:06 -0000	1.83
+++ channel.c	5 Mar 2004 18:32:59 -0000	1.84
@@ -893,8 +893,11 @@
 		time(&now);
 	for (x=0;x<n;x++) {
 		c[x]->blocking = 0;
-		if (havewhen && c[x]->whentohangup && (now > c[x]->whentohangup))
+		if (havewhen && c[x]->whentohangup && (now > c[x]->whentohangup)) {
 			c[x]->_softhangup |= AST_SOFTHANGUP_TIMEOUT;
+			if (!winner)
+				winner = c[x];
+		}
 		for (y=0;y<AST_MAX_FDS;y++) {
 			if (c[x]->fds[y] > -1) {
 				if ((FD_ISSET(c[x]->fds[y], &rfds) || FD_ISSET(c[x]->fds[y], &efds)) && !winner) {




More information about the svn-commits mailing list