[asterisk-commits] branch 1.2 r37442 - /branches/1.2/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 12 08:53:53 MST 2006


Author: kpfleming
Date: Wed Jul 12 10:53:53 2006
New Revision: 37442

URL: http://svn.digium.com/view/asterisk?rev=37442&view=rev
Log:
fix a weird case where a lock file could be left (but would happen almost never)

Modified:
    branches/1.2/apps/app_voicemail.c

Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=37442&r1=37441&r2=37442&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Wed Jul 12 10:53:53 2006
@@ -2617,7 +2617,8 @@
 				} 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);



More information about the asterisk-commits mailing list