diff options
Diffstat (limited to 'channels/chan_local.c')
-rwxr-xr-x | channels/chan_local.c | 3 |
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); |