summaryrefslogtreecommitdiff
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-06-14 16:01:32 +0000
committerMark Spencer <markster@digium.com>2003-06-14 16:01:32 +0000
commit9706fc6baca8182986b2c7232b1445bbd11bb593 (patch)
tree6c72f0dcaf64259cdbcd09e31547bc478fcaef48 /apps/app_queue.c
parent5d6ede1055c9d30607b7ae9c87cb2623eae076a4 (diff)
Fix music on hold on park
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rwxr-xr-xapps/app_queue.c5
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);