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