summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-04-24 22:54:50 +0000
committerMark Spencer <markster@digium.com>2005-04-24 22:54:50 +0000
commit7bedf24c8caff7af0bce631215a50b02bea79d8c (patch)
tree45a13a3294c84b86f472f576fd99904a48da6059 /channel.c
parentf9876ccfa86bafd9e31cac20900c2e007b3b1891 (diff)
If poll returns 0, force *ms to 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 9d6007c64..5eb680d02 100755
--- a/channel.c
+++ b/channel.c
@@ -1126,6 +1126,12 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
#endif
}
return NULL;
+ } else {
+ /* If no fds signalled, then timeout. So set ms = 0
+ since we may not have an exact timeout.
+ */
+ if (res == 0)
+ *ms = 0;
}
if (havewhen)