diff OrthancServer/ServerJobs/LuaJobManager.cpp @ 2950:dc18d5804746

support of JobsHistorySize set to zero
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2018 17:19:57 +0100
parents 4767d36679ed
children 4e43e67f8ecf
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/LuaJobManager.cpp	Thu Nov 29 20:36:55 2018 +0100
+++ b/OrthancServer/ServerJobs/LuaJobManager.cpp	Fri Nov 30 17:19:57 2018 +0100
@@ -143,6 +143,7 @@
       // Need to create a new job, as the previous one is either
       // finished, or is getting too long
       that_.currentJob_ = new SequenceOfOperationsJob;
+      that_.currentJob_->Register(that_);
       that_.currentJob_->SetDescription("Lua");
 
       {