If poll returns 0, force *ms to 0

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2005-04-24 22:54:50 +00:00
parent f9876ccfa8
commit 7bedf24c8c
1 changed files with 6 additions and 0 deletions

View File

@ -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)