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

fix: reset is_starting flag when server already running on boot (#2892)

Divanshue7ca90ae62d1
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index bb8d0510d..32d7dfab5 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -1458,7 +1458,8 @@ async fn main() {
if server_running {
info!("Server already running, skipping embedded server start");
- return; // is_starting stays true — the running server is fine
+ is_starting_clone.store(false, std::sync::atomic::Ordering::SeqCst);
+ return;
}
// Check permissions before starting