[svn-commits] mmichelson: trunk r179254 - /trunk/apps/app_speech_utils.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Mar 1 17:26:01 CST 2009


Author: mmichelson
Date: Sun Mar  1 17:25:23 2009
New Revision: 179254

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179254
Log:
Swap reversed timevals.

This was pointed out by ScribbleJ in #asterisk-dev. Thanks very much, ScribbleJ!


Modified:
    trunk/apps/app_speech_utils.c

Modified: trunk/apps/app_speech_utils.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_speech_utils.c?view=diff&rev=179254&r1=179253&r2=179254
==============================================================================
--- trunk/apps/app_speech_utils.c (original)
+++ trunk/apps/app_speech_utils.c Sun Mar  1 17:25:23 2009
@@ -744,7 +744,7 @@
 		/* Do timeout check (shared between audio/dtmf) */
 		if ((!quieted || strlen(dtmf)) && started == 1) {
 			current = ast_tvnow();
-			if ((ast_tvdiff_ms(start, current)) >= timeout) {
+			if ((ast_tvdiff_ms(current, start)) >= timeout) {
 				done = 1;
 				if (f)
 					ast_frfree(f);




More information about the svn-commits mailing list