mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Merged revisions 37441-37442 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37441 | kpfleming | 2006-07-12 10:46:56 -0500 (Wed, 12 Jul 2006) | 3 lines fix a case where ast_lock_path() could leave a randomly-named lock file hanging around make ast_unlock_path actually report when unlocking fails ........ r37442 | kpfleming | 2006-07-12 10:53:53 -0500 (Wed, 12 Jul 2006) | 2 lines 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/trunk@37514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2650,7 +2650,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