aboutsummaryrefslogtreecommitdiffstats
path: root/main/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 791e839d0..e1bc9323b 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1759,7 +1759,7 @@ static int action_sendtext(struct mansession *s, const struct message *m)
}
res = ast_sendtext(c, textmsg);
- ast_mutex_unlock(&c->lock);
+ ast_channel_unlock(c);
if (res > 0)
astman_send_ack(s, m, "Success");