diff Core/JobsEngine/JobsRegistry.cpp @ 2630:00327e989458 jobs

creating archives/medias is now a job
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 May 2018 16:09:59 +0200
parents 1232922c8793
children e1893d31652a
line wrap: on
line diff
--- a/Core/JobsEngine/JobsRegistry.cpp	Fri May 25 15:13:45 2018 +0200
+++ b/Core/JobsEngine/JobsRegistry.cpp	Fri May 25 16:09:59 2018 +0200
@@ -94,8 +94,9 @@
         throw OrthancException(ErrorCode_NullPointer);
       }
 
+      job->Start();
+
       lastStatus_ = JobStatus(ErrorCode_Success, *job);
-      job->Start();
     }
 
     const std::string& GetId() const