dect
/
asterisk
Archived
13
0
Fork 0

Finish up last commit

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43829 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2006-09-27 21:41:25 +00:00
parent 92cbbd56dc
commit 8d39395066
1 changed files with 8 additions and 1 deletions

View File

@ -4519,8 +4519,15 @@ static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu,int box)
detected.
*/
if (vm_lock_path(vms->curdir)) {
ast_log(LOG_ERROR, "Could not open mailbox %s: mailbox is locked\n", vms->curdir);
return -1;
}
last_msg = last_message_index(vmu, vms->curdir);
if (last_msg < 0)
ast_unlock_path(vms->curdir);
if (last_msg < 0)
return last_msg;
else if (vms->lastmsg != last_msg)
{