whentohangup is already in seconds, just need to convert to milliseconds

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-09-08 02:54:45 +00:00
parent 62e58282eb
commit d597b76c36

View File

@@ -1720,7 +1720,7 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
/* Wait full interval */
rms = *ms;
if (whentohangup) {
rms = (whentohangup - now) * 1000; /* timeout in milliseconds */
rms = whentohangup * 1000; /* timeout in milliseconds */
if (*ms >= 0 && *ms < rms) /* original *ms still smaller */
rms = *ms;
}