diff options
Diffstat (limited to 'src/main_loop.lua')
-rw-r--r-- | src/main_loop.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index cb74170..40f2e9a 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -35,8 +35,10 @@ function main_loop(opt) log.printf(log.NOTICE, "main_loop started") local sig = signal.init() - local ret = debug_shell.init("localhost", 9000) - if(ret == nil) then return -1 end + if(opt.debug) then + local ret = debug_shell.init("localhost", 9000) + if(ret == nil) then return -1 end + end local return_value = 0 while return_value == 0 do |