Merge pull request #420 from fy2462/fix_audio_sample_exit_when_mute

Fix audio sample exit when mute
This commit is contained in:
RustDesk 2022-03-01 10:36:18 +08:00 committed by GitHub
commit e2eef09373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,7 +437,8 @@ async fn start_pa() {
device = x; device = x;
} }
if device == "Mute" { if device == "Mute" {
break; log::info!("Switch mute mode, skip sample audio.");
continue;
} }
if !device.is_empty() { if !device.is_empty() {
device = crate::platform::linux::get_pa_source_name(&device); device = crate::platform::linux::get_pa_source_name(&device);