aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-01 23:25:23 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-01 23:25:23 +0000
commit21d93ce8161c31433f7b4eda0c79b1b2ecc48ef2 (patch)
treed8d1104e2f5c2b704cf6ca56ec9e54ee1258280c /apps/app_speech_utils.c
parent8675791e9e39158eb87cd275c4bd1efce0b8d143 (diff)
Swap reversed timevals.
This was pointed out by ScribbleJ in #asterisk-dev. Thanks very much, ScribbleJ! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179254 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 18fa7821b..8ad5e748b 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -744,7 +744,7 @@ static int speech_background(struct ast_channel *chan, void *data)
/* 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);