Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

release-app

Louis Beaumont6b9c4b238ad5
diff --git a/screenpipe-server/src/auto_destruct.rs b/screenpipe-server/src/auto_destruct.rs
index e71cfed6d..256b7f2f5 100644
--- a/screenpipe-server/src/auto_destruct.rs
+++ b/screenpipe-server/src/auto_destruct.rs
@@ -10,7 +10,7 @@ use windows::Win32::System::Threading::{OpenProcess, PROCESS_QUERY_INFORMATION};
#[cfg(target_os = "windows")]
fn is_process_alive(pid: u32) -> bool {
unsafe {
- let process: HANDLE = OpenProcess(PROCESS_QUERY_INFORMATION, false, pid);
+ let process: HANDLE = OpenProcess(PROCESS_QUERY_INFORMATION, false, pid).unwrap();
if process.is_invalid() {
return false;
}