summaryrefslogtreecommitdiff
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-12-03 21:00:44 +0000
committerMark Michelson <mmichelson@digium.com>2007-12-03 21:00:44 +0000
commit06f67fbc3c071a4f1c5a62e103506656d546244d (patch)
tree560ae0dcbd6966f3e51772d2e62d47a5be22c71c /channels/chan_mgcp.c
parent63342693aea22854672615bdf01cf4b18b8aa730 (diff)
Merged revisions 90639 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r90639 | mmichelson | 2007-12-03 14:59:51 -0600 (Mon, 03 Dec 2007) | 5 lines Changing some bad logic when calculating the interdigit timeout. (closes issue #11402, reported and patched by eferro) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_mgcp.c')
-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 d736a6226..ae7a3ed14 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -2623,7 +2623,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;
}