aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_local.c')
-rwxr-xr-xchannels/chan_local.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 661ab403e..fc5c74fea 100755
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -335,6 +335,9 @@ static int local_hangup(struct ast_channel *ast)
cur = cur->next;
}
ast_mutex_unlock(&locallock);
+ /* Grab / release lock just in case */
+ ast_mutex_lock(&p->lock);
+ ast_mutex_unlock(&p->lock);
/* And destroy */
if (!glaredetect) {
ast_mutex_destroy(&p->lock);