diff --git a/src-service/src/handlers/daemon/dwn.rs b/src-service/src/handlers/daemon/dwn.rs index f2cc4342..9f76709c 100644 --- a/src-service/src/handlers/daemon/dwn.rs +++ b/src-service/src/handlers/daemon/dwn.rs @@ -62,7 +62,7 @@ pub async fn av_scan(resp: &mut Library, state: &mut DaemonState, imp: &mut bool let av_flagged = x.join().expect("This cannot panic as the Thread cannot"); - if !av_flagged { + if !av_flagged.unwrap_or(true) { resp.status = AppStatus::Installing; state.step = Step::Installing; diff --git a/src-service/src/handlers/daemon/mod.rs b/src-service/src/handlers/daemon/mod.rs index 6c6db254..06bb9d3c 100644 --- a/src-service/src/handlers/daemon/mod.rs +++ b/src-service/src/handlers/daemon/mod.rs @@ -90,7 +90,7 @@ pub enum Step { #[derive(Debug)] pub enum DaemonData { Dwn(DownloadData), - AVScan((AHQStoreApplication, JoinHandle)), + AVScan((AHQStoreApplication, JoinHandle>)), Inst(Child), Unst(JoinHandle), None, diff --git a/src-service/src/handlers/service/linux/av/scan.rs b/src-service/src/handlers/service/linux/av/scan.rs index 5a42de29..0ba7b717 100644 --- a/src-service/src/handlers/service/linux/av/scan.rs +++ b/src-service/src/handlers/service/linux/av/scan.rs @@ -2,6 +2,6 @@ use std::thread::JoinHandle; pub type Malicious = bool; -pub fn scan_threaded(_p: &T) -> JoinHandle { - std::thread::spawn(|| false) +pub fn scan_threaded(_p: &T) -> JoinHandle> { + std::thread::spawn(|| Some(false)) }