Mercurial > hg > orthanc
changeset 5924:79cd099a2e8d find-refactoring
archive jobs: added missing mutex
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Mon, 16 Dec 2024 12:43:57 +0100 |
| parents | a85c0dca4809 |
| children | 9704181280c6 |
| files | OrthancServer/Sources/ServerJobs/ArchiveJob.cpp |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp Mon Dec 16 11:24:49 2024 +0100 +++ b/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp Mon Dec 16 12:43:57 2024 +0100 @@ -284,6 +284,8 @@ boost::shared_ptr<std::string> dicomContent; { + boost::mutex::scoped_lock lock(availableInstancesMutex_); + if (availableInstances_.find(instanceId) != availableInstances_.end()) { // this is the instance we were waiting for
