summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-03-15 17:11:27 +0000
committerHenri Herscher <henri@oreka.org>2006-03-15 17:11:27 +0000
commit0c541d1af41bd90abe20aa29855f1db96107f6fe (patch)
tree24422a71f5da020352fdc874af1bdc7c87d3cd11
parent52c0d52059e11a44aa1373c34399ca7092309b94 (diff)
If an exception happens in the batch processing, will still delete the mcf file.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@193 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/BatchProcessing.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/orkaudio/BatchProcessing.cpp b/orkaudio/BatchProcessing.cpp
index 1435bb4..1d47f10 100644
--- a/orkaudio/BatchProcessing.cpp
+++ b/orkaudio/BatchProcessing.cpp
@@ -244,6 +244,10 @@ void BatchProcessing::ThreadHandler(void *args)
}
catch (CStdString& e)
{
+ if(CONFIG.m_deleteNativeFile && fileRef.get() != NULL)
+ {
+ fileRef->Delete();
+ }
LOG4CXX_ERROR(LOG.batchProcessingLog, CStdString("BatchProcessing: ") + e);
}
//catch(...)