From bbea3dc088a370886c357f1b633cf3309a19f63b Mon Sep 17 00:00:00 2001 From: batrick Date: Sat, 14 Jul 2012 22:32:37 +0000 Subject: [PATCH] "Start" the worker thread so the host timeout accounting is correct. Also add to num_threads for accounting. --- nse_main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nse_main.lua b/nse_main.lua index e44cb378f..fde4991e4 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -821,6 +821,8 @@ local function run (threads_iter, hosts) }; setmetatable(thread, thread_mt); total, all[co], pending[co] = total+1, thread, thread; + num_threads = num_threads + 1; + thread:start(timeouts); local function info () return status(co), rawget(thread, "error"); end