diff OrthancServer/LuaScripting.cpp @ 2620:1232922c8793 jobs

speeding up shutdown if Lua script is in trailing phase
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 May 2018 14:08:57 +0200
parents ef5b45884972
children 25ae209dcea9
line wrap: on
line diff
--- a/OrthancServer/LuaScripting.cpp	Tue May 22 13:11:47 2018 +0200
+++ b/OrthancServer/LuaScripting.cpp	Tue May 22 14:08:57 2018 +0200
@@ -588,6 +588,8 @@
       continue_ = false;
     }
 
+    jobManager_.AwakeTrailingSleep();
+
     if (eventThread_.joinable())
     {
       LOG(INFO) << "Stopping the Lua engine";