mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 20:44:20 +00:00
Whentohangup is in seconds, not milliseconds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -845,8 +845,8 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
|
|||||||
|
|
||||||
if (havewhen) {
|
if (havewhen) {
|
||||||
if ((*ms < 0) || (whentohangup * 1000 < *ms)) {
|
if ((*ms < 0) || (whentohangup * 1000 < *ms)) {
|
||||||
tv.tv_sec = whentohangup / 1000;
|
tv.tv_sec = whentohangup;
|
||||||
tv.tv_usec = (whentohangup % 1000) * 1000;
|
tv.tv_usec = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FD_ZERO(&rfds);
|
FD_ZERO(&rfds);
|
||||||
|
Reference in New Issue
Block a user