Mercurial > hg > orthanc
comparison OrthancServer/main.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 | 83c991aeb611 |
children | 959bd8857eb5 |
comparison
equal
deleted
inserted
replaced
2737:8ed9893c9230 | 2738:3a55b77339ff |
---|---|
993 catch (...) | 993 catch (...) |
994 { | 994 { |
995 context.GetIndex().SetMaximumStorageSize(0); | 995 context.GetIndex().SetMaximumStorageSize(0); |
996 } | 996 } |
997 | 997 |
998 LOG(INFO) << "Initializing Lua for the event handler"; | |
999 context.GetLuaScripting().LoadGlobalConfiguration(); | |
1000 | |
1001 context.GetJobsEngine().GetRegistry().SetMaxCompletedJobs | 998 context.GetJobsEngine().GetRegistry().SetMaxCompletedJobs |
1002 (Configuration::GetGlobalUnsignedIntegerParameter("JobsHistorySize", 10)); | 999 (Configuration::GetGlobalUnsignedIntegerParameter("JobsHistorySize", 10)); |
1003 | 1000 |
1004 #if ORTHANC_ENABLE_PLUGINS == 1 | 1001 #if ORTHANC_ENABLE_PLUGINS == 1 |
1005 if (plugins) | 1002 if (plugins) |