Skip to content

Commit

Permalink
Exeunit termination with timeout. Windows bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalski committed Feb 2, 2024
1 parent 2dbfcd4 commit adbb61f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/process/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ impl ProcessHandle {
abort_handle.abort();
});

let _ = Abortable::new(async { process.wait() }, abort_registration).await;
let process = self.clone();
let _ = Abortable::new(process.wait_until_finished(), abort_registration).await;
self.check_if_running()
}

Expand Down

0 comments on commit adbb61f

Please sign in to comment.