Skip to content

Commit 86e4cd5

Browse files
authored
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:
1 parent 3915f9f commit 86e4cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def main():
601601

602602
# short delay for thread finalization
603603
_ = time.time()
604-
while threading.active_count() > 1 and (time.time() - _) > THREAD_FINALIZATION_TIMEOUT:
604+
while threading.active_count() > 1 and (time.time() - _) < THREAD_FINALIZATION_TIMEOUT:
605605
time.sleep(0.01)
606606

607607
if cmdLineOptions.get("sqlmapShell"):

0 commit comments

Comments
 (0)