]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 179254 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Sun, 1 Mar 2009 23:28:19 +0000 (23:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Sun, 1 Mar 2009 23:28:19 +0000 (23:28 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@179256 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_speech_utils.c

index cddaaeea9366c666631465800a14eeab1564be55..301be74aaaacafa39ca579a4e71262e888858ce0 100644 (file)
@@ -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);