diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index d736a6226d..ae7a3ed14b 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; }