[asterisk-commits] mmichelson: branch 1.4 r98849 - /branches/1.4/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 14 14:59:26 CST 2008
Author: mmichelson
Date: Mon Jan 14 14:59:26 2008
New Revision: 98849
URL: http://svn.digium.com/view/asterisk?view=rev&rev=98849
Log:
Adding in appropriate unlocks for the locks I added. Thanks to joetester on IRC
for pointing this out.
Modified:
branches/1.4/apps/app_voicemail.c
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=98849&r1=98848&r2=98849
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Mon Jan 14 14:59:26 2008
@@ -8812,8 +8812,10 @@
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 @@
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 {
More information about the asterisk-commits
mailing list