# HG changeset patch # User Sebastien Jodogne # Date 1629293208 -7200 # Node ID a046e91cc76f1cc8242d6e9e168dafd73a90a07c # Parent e1711b6e141f3ac16be421a5457f64dccb4ec1ce cont fix diff -r e1711b6e141f -r a046e91cc76f OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp --- 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();