From bf6699ffaa0bd600fc9ec757bb71f95bbdb85ec8 Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 6 Nov 2004 21:33:01 +0000 Subject: Add features (incomplete, highly experimental), fix DundiLookup app, debug improvements (bug #2800) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4167 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_local.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'channels/chan_local.c') 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); -- cgit v1.2.3