From 231e2ad7db8d588f01ee8d8ed4cd68b36685fcd8 Mon Sep 17 00:00:00 2001 From: mmichelson Date: Mon, 14 Jan 2008 20:59:26 +0000 Subject: Adding in appropriate unlocks for the locks I added. Thanks to joetester on IRC for pointing this out. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98849 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_voicemail.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 8ba4b5eaf..971f913d3 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8812,8 +8812,10 @@ static struct vm_state *get_vm_state_by_imapuser(char *user, int interactive) if (vlist->vms->imapuser) { if (!strcmp(vlist->vms->imapuser,user)) { if (interactive == 2) { + ast_mutex_unlock(&vmstate_lock); return vlist->vms; } else if (vlist->vms->interactive == interactive) { + ast_mutex_unlock(&vmstate_lock); return vlist->vms; } } @@ -8849,6 +8851,7 @@ static struct vm_state *get_vm_state_by_mailbox(const char *mailbox, int interac if (!strcmp(vlist->vms->username,mailbox) && vlist->vms->interactive == interactive) { if (option_debug > 2) ast_log(LOG_DEBUG, " Found it!\n"); + ast_mutex_unlock(&vmstate_lock); return vlist->vms; } } else { -- cgit v1.2.3