]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Changing some bad logic when calculating the interdigit timeout.
authorMark Michelson <mmichelson@digium.com>
Mon, 3 Dec 2007 20:59:51 +0000 (20:59 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 3 Dec 2007 20:59:51 +0000 (20:59 +0000)
(closes issue #11402, reported and patched by eferro)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@90639 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index 675148b6dfee612788b3f7347e6e6f48bdea7dc2..85ad6abae27519c868e98a0df628c073e3b5262f 100644 (file)
@@ -2619,7 +2619,7 @@ static void *mgcp_ss(void *data)
                while (strlen(p->dtmf_buf) == len){
                        ast_safe_sleep(chan, loop_pause);
                        timeout -= loop_pause;
-                       if ( (timeout -= loop_pause) <= 0){
+                       if (timeout <= 0){
                                res = 0;
                                break;
                        }