dect
/
asterisk
Archived
13
0
Fork 0

And of course return us as a winner

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2353 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-03-05 18:32:59 +00:00
parent 1ef81d9de3
commit 2a6c74c735
1 changed files with 4 additions and 1 deletions

View File

@ -893,8 +893,11 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
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) {