mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-10-22 03:34:29 +03:00
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:
This commit is contained in:
parent
3915f9f702
commit
86e4cd55fa
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user