From d597b76c369376c4fa80fa9ccdbf206d695f7f77 Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Fri, 8 Sep 2006 02:54:45 +0000
Subject: [PATCH] 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
---
 main/channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/channel.c b/main/channel.c
index dec1f86bab..84485240b6 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -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;
 	}
-- 
GitLab