From: Mark Michelson Date: Tue, 29 Jan 2008 19:39:00 +0000 (+0000) Subject: Fixing an erroneous return value returned when attempting to pause or unpause a queue... X-Git-Tag: 1.4.18~6^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad19e1c4b6f8515957b5f0e3fda1c01171eb22bd;p=thirdparty%2Fasterisk.git Fixing an erroneous return value returned when attempting to pause or unpause a queue member fails. Fixes BE-366, thanks to John Bigelow for writing the patch. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@100973 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index d0fa91241e..761d2fc079 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3444,7 +3444,7 @@ static int pqm_exec(struct ast_channel *chan, void *data) } ast_module_user_remove(lu); pbx_builtin_setvar_helper(chan, "PQMSTATUS", "NOTFOUND"); - return -1; + return 0; } ast_module_user_remove(lu); @@ -3497,7 +3497,7 @@ static int upqm_exec(struct ast_channel *chan, void *data) } ast_module_user_remove(lu); pbx_builtin_setvar_helper(chan, "UPQMSTATUS", "NOTFOUND"); - return -1; + return 0; } ast_module_user_remove(lu);