aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-01 23:28:19 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-01 23:28:19 +0000
commitb8b9ab767eecf065800d5921c3ce22f906b97941 (patch)
tree7da572eb3d4d6b9c32001ea5a1550ebeae3f785c /apps/app_speech_utils.c
parentc1288e9697a673027b35ad5b34b58ac0d71c2d52 (diff)
Merged revisions 179254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r179254 | mmichelson | 2009-03-01 17:25:23 -0600 (Sun, 01 Mar 2009) | 5 lines 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/branches/1.6.1@179256 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 cddaaeea9..301be74aa 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -620,7 +620,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);