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 clone

Louis Beaumont8f563cab2b28
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index 36b6a3b46..801fed93d 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -234,7 +234,7 @@ async fn main() -> anyhow::Result<()> {
cli.self_healing,
Duration::from_secs(60),
3,
- restart_sender, // TODO: remove self healing its dead code atm
+ restart_sender, // TODO: remove self healing its dead code atm
cli.port,
);
resource_monitor.start_monitoring(Duration::from_secs(10));
@@ -294,8 +294,7 @@ async fn main() -> anyhow::Result<()> {
let output_path_clone = Arc::new(local_data_dir.join("data").to_string_lossy().into_owned());
let vision_control_clone = Arc::clone(&vision_control);
let shutdown_tx_clone = shutdown_tx.clone();
- let friend_wearable_uid_clone = friend_wearable_uid.clone(); // Clone here
- let vad_engine_clone = vad_engine.clone(); // Clone it here for each iteration
+ let friend_wearable_uid_clone = friend_wearable_uid.clone(); // Clone here
let fps = if cli.fps.is_finite() && cli.fps > 0.0 {
cli.fps
@@ -317,6 +316,7 @@ async fn main() -> anyhow::Result<()> {
};
loop {
+ let vad_engine_clone = vad_engine.clone(); // Clone it here for each iteration
let mut shutdown_rx = shutdown_tx_clone.subscribe();
let recording_future = start_continuous_recording(
db_clone.clone(),