summaryrefslogtreecommitdiff
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
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;
}