An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
fix(audio): restart capture when the device is unavailable (#16142)
fufesou978e2e28b9d3
diff --git a/src/server/audio_capture_error.rs b/src/server/audio_capture_error.rsindex bb837d8bf..34eec584d 100644--- a/src/server/audio_capture_error.rs+++ b/src/server/audio_capture_error.rs@@ -11,7 +11,10 @@ pub(super) struct CaptureErrorHandler {impl CaptureErrorHandler {pub(super) fn handle(&self, error: cpal::StreamError) {- if matches!(error, cpal::StreamError::StreamInterrupted { .. }) {+ if matches!(+ error,+ cpal::StreamError::StreamInterrupted { .. } | cpal::StreamError::DeviceNotAvailable+ ) {// ScreenCaptureKit can stop capture while the remote session stays open.// The observed -3821 error does not identify its underlying trigger.// https://developer.apple.com/documentation/screencapturekit/scstreamdelegate/stream(_:didstopwitherror:)