diff OrthancServer/LuaScripting.cpp @ 2738:3a55b77339ff

fix deadlock in Lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 16 Jul 2018 11:19:30 +0200
parents 815e30657dad
children 6e3a60b85da6
line wrap: on
line diff
--- a/OrthancServer/LuaScripting.cpp	Sun Jul 15 16:41:43 2018 +0200
+++ b/OrthancServer/LuaScripting.cpp	Mon Jul 16 11:19:30 2018 +0200
@@ -582,6 +582,9 @@
     lua_.RegisterFunction("RestApiPut", RestApiPut);
     lua_.RegisterFunction("RestApiDelete", RestApiDelete);
     lua_.RegisterFunction("GetOrthancConfiguration", GetOrthancConfiguration);
+
+    LOG(INFO) << "Initializing Lua for the event handler";
+    LoadGlobalConfiguration();
   }