diff options
Diffstat (limited to 'src/main_loop.lua')
-rw-r--r-- | src/main_loop.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index 2a34477..42cc74c 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -74,11 +74,16 @@ function main_loop(opt) log.printf(log.NOTICE, "main_loop started") local sig = signal.init() - local return_value = module_list:init(opt) - if(return_value == defines.KILL_DAEMON) then + local return_value = dispatch_table:load_handler_table_file(opt.lua_code) + if (return_value == defines.KILL_DAEMON) then return_value = -1 else - return_value = 0 + return_value = module_list:init(opt) + if(return_value == defines.KILL_DAEMON) then + return_value = -1 + else + return_value = 0 + end end while return_value == 0 do |