Mercurial > hg > orthanc-wsi
diff Framework/Outputs/DicomPyramidWriter.cpp @ 7:bc3ca410b765
Fix freeze if the target Orthanc is not accepting images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Oct 2016 15:42:52 +0200 |
parents | 4a7a53257c7d |
children | 7a88c614be04 |
line wrap: on
line diff
--- a/Framework/Outputs/DicomPyramidWriter.cpp Wed Oct 26 14:00:54 2016 +0200 +++ b/Framework/Outputs/DicomPyramidWriter.cpp Wed Oct 26 15:42:52 2016 +0200 @@ -179,7 +179,15 @@ { if (writers_[i] != NULL) { - FlushInternal(*writers_[i], true); + try + { + FlushInternal(*writers_[i], true); + } + catch (Orthanc::OrthancException&) + { + LOG(ERROR) << "Cannot push the pending tiles to the DICOM pyramid while finalizing"; + } + delete writers_[i]; } }