diff options
author | Mark Spencer <markster@digium.com> | 2004-03-05 18:32:59 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-05 18:32:59 +0000 |
commit | 2bc6301e39bb9cd9346cdcd2965df11109c0e226 (patch) | |
tree | f290721027e5ac2302482256b33f5082d21bb8e1 /channel.c | |
parent | c07a37b91d3924ed58d6e5718260cf982adb847e (diff) |
And of course return us as a winner
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |