changeset 5026:bafef43b6f37

cppcheck
author Alain Mazy <am@osimis.io>
date Tue, 21 Jun 2022 10:57:37 +0200
parents afa427f65444
children 06ffe03d008a
files OrthancServer/Sources/LuaScripting.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/LuaScripting.cpp	Tue Jun 21 10:55:45 2022 +0200
+++ b/OrthancServer/Sources/LuaScripting.cpp	Tue Jun 21 10:57:37 2022 +0200
@@ -865,9 +865,9 @@
       LOG(INFO) << "Starting the Lua engine";
       eventThread_ = boost::thread(EventThread, this);
       
-      LuaScripting::Lock lock(*this);
+      LuaScripting::Lock luaLock(*this);
 
-      if (heartBeatPeriod_ > 0 && lock.GetLua().IsExistingFunction("OnHeartBeat"))
+      if (heartBeatPeriod_ > 0 && luaLock.GetLua().IsExistingFunction("OnHeartBeat"))
       {
         LOG(INFO) << "Starting the Lua HeartBeat thread with a period of " << heartBeatPeriod_ << " seconds";
         heartBeatThread_ = boost::thread(HeartBeatThread, this);