summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_local.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 6f910931e..980afabdc 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -438,6 +438,8 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da
if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) {
ast_mutex_unlock(&p->lock);
}
+ } else {
+ ast_mutex_unlock(&p->lock);
}
} else {
/* Queue up a frame representing the indication as a control frame */