From: Brian West Date: Mon, 28 Jan 2008 20:14:38 +0000 (+0000) Subject: fix race loop X-Git-Tag: v1.0-rc1~507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ce39e24cdf42a6dcd87f52ace935e6b4de9630;p=thirdparty%2Ffreeswitch.git fix race loop git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7412 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 5d9822c5ee..23fd955fd9 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -901,7 +901,7 @@ record_file: if (unlink(file_path) != 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path); } - goto record_file; + goto end; } else { status = SWITCH_STATUS_SUCCESS; }