diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-12 15:53:53 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-12 15:53:53 +0000 |
commit | 9b62340d2647c8d870017fb04b4e42fb8137087f (patch) | |
tree | 906cd77c65717104031a09d1348e383e5546e87e /apps | |
parent | dc4160359b9924be7d84ff491598b332d90e9d6c (diff) |
fix a weird case where a lock file could be left (but would happen almost never)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@37442 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 96973623f..4402d4d4f 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2617,7 +2617,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ } else if (ast_fileexists(tmptxtfile, NULL, NULL) <= 0) { if (option_debug) ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n"); - unlink(tmptxtfile); + unlink(tmptxtfile); + ast_unlock_path(dir); } else { for (;;) { make_file(fn, sizeof(fn), dir, msgnum); |