aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-03 20:59:51 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-03 20:59:51 +0000
commit5a99fca6841b3b3b77b3d1b1f6682b0373e62b6c (patch)
tree897ceb132cae0e5f7e77c174cc0786d8c48480f8 /channels
parentb8432db8e0eb9ff5d590cc296fcec5c2d6d5c1a2 (diff)
Changing some bad logic when calculating the interdigit timeout.
(closes issue #11402, reported and patched by eferro) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90639 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_mgcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 675148b6d..85ad6abae 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -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;
}