Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 2617:912a767911b0 jobs
back to a single Lua context
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 May 2018 12:45:34 +0200 |
parents | 2f3007bf0708 |
children | e09021ddc00d |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Tue May 22 12:25:37 2018 +0200 +++ b/OrthancServer/ServerContext.cpp Tue May 22 12:45:34 2018 +0200 @@ -114,7 +114,7 @@ storeMD5_(true), provider_(*this), dicomCache_(provider_, DICOM_CACHE_SIZE), - luaEventHandler_(*this), + lua_(*this), #if ORTHANC_ENABLE_PLUGINS == 1 plugins_(NULL), #endif @@ -122,7 +122,7 @@ queryRetrieveArchive_(Configuration::GetGlobalUnsignedIntegerParameter("QueryRetrieveSize", 10)), defaultLocalAet_(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")) { - listeners_.push_back(ServerListener(luaEventHandler_, "Lua")); + listeners_.push_back(ServerListener(lua_, "Lua")); jobsEngine_.SetWorkersCount(Configuration::GetGlobalUnsignedIntegerParameter("ConcurrentJobs", 2)); //jobsEngine_.SetMaxCompleted // TODO @@ -580,7 +580,7 @@ // TODO REFACTOR THIS listeners_.clear(); - listeners_.push_back(ServerListener(luaEventHandler_, "Lua")); + listeners_.push_back(ServerListener(lua_, "Lua")); listeners_.push_back(ServerListener(plugins, "plugin")); } @@ -593,7 +593,7 @@ // TODO REFACTOR THIS listeners_.clear(); - listeners_.push_back(ServerListener(luaEventHandler_, "Lua")); + listeners_.push_back(ServerListener(lua_, "Lua")); }