[asterisk-commits] file: trunk r42374 - /trunk/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Sep 7 19:54:45 MST 2006


Author: file
Date: Thu Sep  7 21:54:45 2006
New Revision: 42374

URL: http://svn.digium.com/view/asterisk?rev=42374&view=rev
Log:
whentohangup is already in seconds, just need to convert to milliseconds

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?rev=42374&r1=42373&r2=42374&view=diff
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Thu Sep  7 21:54:45 2006
@@ -1720,7 +1720,7 @@
 	/* 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;
 	}



More information about the asterisk-commits mailing list