Mercurial > hg > orthanc
changeset 6644:38f8a3b3d04e
fix get scu with multiple resources
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Mon, 30 Mar 2026 14:21:48 +0200 |
| parents | 4f05311b113b |
| children | f0fec684ad91 5ce108190752 |
| files | OrthancServer/Sources/OrthancGetRequestHandler.cpp |
| diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancGetRequestHandler.cpp Mon Mar 30 12:47:58 2026 +0200 +++ b/OrthancServer/Sources/OrthancGetRequestHandler.cpp Mon Mar 30 14:21:48 2026 +0200 @@ -579,6 +579,7 @@ } instancesLoader_.reset(new ThreadedInstancesLoader(context_, loaderThreads, false, DicomTransferSyntax_BigEndianExplicit /* dummy unused value */, 0, "CGET")); + std::vector<FileInfo> filesInfo; for (std::list<std::string>::const_iterator resourceId = publicIds.begin(); resourceId != publicIds.end(); ++resourceId) @@ -586,13 +587,12 @@ CLOG(INFO, DICOM) << "C-GET: Sending resource " << *resourceId << " to modality \"" << originatorAet << "\""; - std::vector<FileInfo> filesInfo; context_.GetOrderedChildInstances(instancesIds_, filesInfo, *resourceId, level); + } - for (size_t i = 0; i < instancesIds_.size(); ++i) - { - instancesLoader_->PrepareDicom(instancesIds_[i], filesInfo[i]); - } + for (size_t i = 0; i < instancesIds_.size(); ++i) + { + instancesLoader_->PrepareDicom(instancesIds_[i], filesInfo[i]); } failedUIDs_.clear();
