From ccf0f3af78c72f3988f85a2f22b1d10906ac36f5 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 12 Dec 2021 23:42:36 +0000 Subject: [PATCH] Make 'Starting' and 'Finished' debug prints balanced for worker threads --- nse_main.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nse_main.lua b/nse_main.lua index af5f61140..f084fd2f8 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -541,7 +541,10 @@ do elseif status == "dead" then if self.action_started then self:set_output(r1, r2); - self:d("Finished %THREAD_AGAINST."); + -- -d1 = report finished scripts. -d2 = report finished threads + if not self.worker or debugging() > 1 then + self:d("Finished %THREAD_AGAINST."); + end end self:close(timeouts); end