[Asterisk-cvs] asterisk channel.c,1.73.2.8,1.73.2.9
markster at lists.digium.com
markster at lists.digium.com
Fri Mar 5 13:41:54 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv9668
Modified Files:
Tag: v1-0_stable
channel.c
Log Message:
And return as a winner
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.73.2.8
retrieving revision 1.73.2.9
diff -u -d -r1.73.2.8 -r1.73.2.9
--- channel.c 5 Mar 2004 18:31:24 -0000 1.73.2.8
+++ channel.c 5 Mar 2004 18:33:17 -0000 1.73.2.9
@@ -895,8 +895,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