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

Avoid active audio device restart checks (#3963)

Louis Beaumont58fab8dd7d6b
diff --git a/crates/screenpipe-audio/src/audio_manager/device_monitor.rs b/crates/screenpipe-audio/src/audio_manager/device_monitor.rs
index 2439ace6d..24008ecbc 100644
--- a/crates/screenpipe-audio/src/audio_manager/device_monitor.rs
+++ b/crates/screenpipe-audio/src/audio_manager/device_monitor.rs
@@ -1165,6 +1165,10 @@ pub async fn start_device_monitor(
continue;
}
+ if is_device_actively_streaming(&device_manager, &device) {
+ continue;
+ }
+
match audio_manager.start_device(&device).await {
Ok(()) => {
//