Skip to content

Commit

Permalink
pu
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Aug 12, 2024
1 parent 6a35338 commit 1f9a0b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src-service/src/handlers/daemon/dwn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src-service/src/handlers/daemon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub enum Step {
#[derive(Debug)]
pub enum DaemonData {
Dwn(DownloadData),
AVScan((AHQStoreApplication, JoinHandle<Malicious>)),
AVScan((AHQStoreApplication, JoinHandle<Option<Malicious>>)),
Inst(Child),
Unst(JoinHandle<bool>),
None,
Expand Down
4 changes: 2 additions & 2 deletions src-service/src/handlers/service/linux/av/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ use std::thread::JoinHandle;

pub type Malicious = bool;

pub fn scan_threaded<T>(_p: &T) -> JoinHandle<Malicious> {
std::thread::spawn(|| false)
pub fn scan_threaded<T>(_p: &T) -> JoinHandle<Option<Malicious>> {
std::thread::spawn(|| Some(false))
}

0 comments on commit 1f9a0b8

Please sign in to comment.