diff options
author | Henri Herscher <henri@oreka.org> | 2006-03-15 17:11:27 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-03-15 17:11:27 +0000 |
commit | 0c541d1af41bd90abe20aa29855f1db96107f6fe (patch) | |
tree | 24422a71f5da020352fdc874af1bdc7c87d3cd11 /orkaudio/BatchProcessing.cpp | |
parent | 52c0d52059e11a44aa1373c34399ca7092309b94 (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
Diffstat (limited to 'orkaudio/BatchProcessing.cpp')
-rw-r--r-- | orkaudio/BatchProcessing.cpp | 4 |
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(...) |