fixed a bug where the number of targets was being output before they

were counted for the rustbuster command.
This commit is contained in:
2026-09-02 14:32:05 -05:00
parent 86c3525493
commit dd8fee4297
+4 -4
View File
@@ -1209,10 +1209,6 @@ impl AppState {
}); });
let mut num_dir = 0; let mut num_dir = 0;
let mut num_sub = 0; let mut num_sub = 0;
let _ = self.main_tx.send(ToolMessage::Output((
rid,
format!("{} targets found scanning...", num_dir + num_sub),
)));
let tx_clone = self.main_tx.clone(); let tx_clone = self.main_tx.clone();
let out_path = self.projects[self.selected_project].files.clone(); let out_path = self.projects[self.selected_project].files.clone();
let project_clone = let project_clone =
@@ -1233,6 +1229,10 @@ impl AppState {
} }
} }
} }
let _ = self.main_tx.send(ToolMessage::Output((
rid,
format!("{} targets found scanning...", num_dir + num_sub),
)));
let new_progress = Arc::new(RwLock::new(ToolProgress { let new_progress = Arc::new(RwLock::new(ToolProgress {
name: "rustbuster".to_string(), name: "rustbuster".to_string(),
total: num_dir + num_sub, total: num_dir + num_sub,