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
1.4
Joshua Colp 19 years ago
parent 62e58282eb
commit d597b76c36

@ -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;
}

Loading…
Cancel
Save