dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
mmichelson 2009-03-01 23:25:23 +00:00
parent 8675791e9e
commit 21d93ce816
1 changed files with 1 additions and 1 deletions

View File

@ -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);