fix attempt
This commit is contained in:
parent
03c52abd1b
commit
c0b820c96c
@ -294,6 +294,7 @@ class Scanner:
|
|||||||
break
|
break
|
||||||
|
|
||||||
self.current_depth = depth
|
self.current_depth = depth
|
||||||
|
# Update current depth immediately for GUI
|
||||||
self._update_session_state()
|
self._update_session_state()
|
||||||
|
|
||||||
targets_to_process = current_level_targets - processed_targets
|
targets_to_process = current_level_targets - processed_targets
|
||||||
@ -303,6 +304,7 @@ class Scanner:
|
|||||||
|
|
||||||
print(f"Processing depth level {depth} with {len(targets_to_process)} new targets")
|
print(f"Processing depth level {depth} with {len(targets_to_process)} new targets")
|
||||||
self.total_indicators_found += len(targets_to_process)
|
self.total_indicators_found += len(targets_to_process)
|
||||||
|
# Update total indicators for GUI
|
||||||
self._update_session_state()
|
self._update_session_state()
|
||||||
|
|
||||||
target_results = self._process_targets_sequential_with_stop_checks(
|
target_results = self._process_targets_sequential_with_stop_checks(
|
||||||
@ -313,12 +315,11 @@ class Scanner:
|
|||||||
next_level_targets = set()
|
next_level_targets = set()
|
||||||
for _target, new_targets in target_results:
|
for _target, new_targets in target_results:
|
||||||
all_discovered_targets.update(new_targets)
|
all_discovered_targets.update(new_targets)
|
||||||
# This is the critical change: add all new targets to the next level
|
|
||||||
next_level_targets.update(new_targets)
|
next_level_targets.update(new_targets)
|
||||||
|
|
||||||
# Filter out already processed targets before the next iteration
|
|
||||||
current_level_targets = next_level_targets - processed_targets
|
current_level_targets = next_level_targets - processed_targets
|
||||||
|
|
||||||
|
# Additional stop check at end of each depth level
|
||||||
if self._is_stop_requested():
|
if self._is_stop_requested():
|
||||||
print(f"Stop requested after processing depth {depth}")
|
print(f"Stop requested after processing depth {depth}")
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user