mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user