# HG changeset patch # User Alain Mazy # Date 1734349437 -3600 # Node ID 79cd099a2e8df7d558ec63c735ab9302314d07ac # Parent a85c0dca48097086194fc4af65654049156ea356 archive jobs: added missing mutex diff -r a85c0dca4809 -r 79cd099a2e8d OrthancServer/Sources/ServerJobs/ArchiveJob.cpp --- 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 dicomContent; { + boost::mutex::scoped_lock lock(availableInstancesMutex_); + if (availableInstances_.find(instanceId) != availableInstances_.end()) { // this is the instance we were waiting for