Mercurial > hg > orthanc
diff OrthancServer/ServerJobs/DicomModalityStoreJob.cpp @ 2624:714dcddeb65f jobs
asynchronous c-movoe
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 May 2018 21:44:22 +0200 |
parents | 988936118354 |
children | c691fcf66071 |
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/DicomModalityStoreJob.cpp Wed May 23 14:28:25 2018 +0200 +++ b/OrthancServer/ServerJobs/DicomModalityStoreJob.cpp Thu May 24 21:44:22 2018 +0200 @@ -57,7 +57,16 @@ << remote_.GetApplicationEntityTitle() << "\""; std::string dicom; - context_.ReadDicom(dicom, instance); + + try + { + context_.ReadDicom(dicom, instance); + } + catch (OrthancException& e) + { + LOG(WARNING) << "An instance was removed after the job was issued: " << instance; + return false; + } if (HasMoveOriginator()) { @@ -161,6 +170,7 @@ void DicomModalityStoreJob::GetPublicContent(Json::Value& value) { + value["Description"] = GetDescription(); value["LocalAet"] = localAet_; value["RemoteAet"] = remote_.GetApplicationEntityTitle();