From 86e4cd55fa5e00e99c72cd91c4b69b231d79a270 Mon Sep 17 00:00:00 2001 From: JerryJhird Date: Sun, 19 Oct 2025 09:46:02 +0100 Subject: [PATCH] fix logic bug (#5967) The thread-finalization loop used a reversed comparison, causing the wait loop to be skipped immediately: this change reverse the comparison so it will wait while there are active threads and elapsed time is less than the configured THREAD_FINALIZATION_TIMEOUT: --- sqlmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlmap.py b/sqlmap.py index 646208086..b8c870cdc 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -601,7 +601,7 @@ def main(): # short delay for thread finalization _ = time.time() - while threading.active_count() > 1 and (time.time() - _) > THREAD_FINALIZATION_TIMEOUT: + while threading.active_count() > 1 and (time.time() - _) < THREAD_FINALIZATION_TIMEOUT: time.sleep(0.01) if cmdLineOptions.get("sqlmapShell"):