Mercurial > hg > orthanc
changeset 4768:a046e91cc76f
cont fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Aug 2021 15:26:48 +0200 |
parents | e1711b6e141f |
children | 9da6ca57a977 |
files | OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp Wed Aug 18 15:16:39 2021 +0200 +++ b/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp Wed Aug 18 15:26:48 2021 +0200 @@ -226,6 +226,11 @@ return runtime_; } + void ResetRuntime() + { + runtime_ = boost::posix_time::milliseconds(0); + } + const JobStatus& GetLastStatus() const { return lastStatus_; @@ -1071,6 +1076,7 @@ (void) ok; // Remove warning about unused variable in release builds assert(ok); + found->second->ResetRuntime(); found->second->SetState(JobState_Pending); pendingJobs_.push(found->second); pendingJobAvailable_.notify_one();