aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/manager.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/manager.c b/main/manager.c
index bdd679c34..173964b19 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1507,15 +1507,14 @@ static int action_setvar(struct mansession *s, const struct message *m)
if (varname[strlen(varname)-1] == ')') {
char *function = ast_strdupa(varname);
res = ast_func_write(c, function, varval);
- ast_log(LOG_DEBUG, "---- RESULT of ast_func_write %d \n", res);
} else {
pbx_builtin_setvar_helper(c, varname, S_OR(varval, ""));
}
- if (c)
+ if (c) {
ast_channel_unlock(c);
+ }
- ast_log(LOG_DEBUG, "---- RESULT 2 :: ast_func_write %d \n", res);
if (res == 0) {
astman_send_ack(s, m, "Variable Set");
} else {