diff --git a/src/event_handlers/outputs.rs b/src/event_handlers/outputs.rs index 7555ca65..b9da00b6 100644 --- a/src/event_handlers/outputs.rs +++ b/src/event_handlers/outputs.rs @@ -98,6 +98,8 @@ impl FileOutHandler { log::info!("Writing scan results to {}", self.config.output); + write_to(&*self.config, &mut file, self.config.json)?; + while let Some(command) = self.receiver.recv().await { match command { Command::Report(response) => {