mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
fix a weird case where a lock file could be left (but would happen almost never)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user