diff options
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index ae475530b..9d451d101 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -718,9 +718,10 @@ static int queue_exec(struct ast_channel *chan, void *data) } } /* Don't allow return code > 0 */ - if (res > 0 && res != AST_PBX_KEEPALIVE) + if (res > 0 && res != AST_PBX_KEEPALIVE) { res = 0; - ast_moh_stop(chan); + ast_moh_stop(chan); + } leave_queue(&qe); } else { ast_log(LOG_WARNING, "Unable to join queue '%s'\n", queuename); |