From 78c1f07a3534e562ecd08f10d5ee813ce66eea13 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 29 Aug 2026 11:36:59 -0400 Subject: [PATCH] Fix muting also deaf --- src-tauri/src/commands/audio.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/commands/audio.rs b/src-tauri/src/commands/audio.rs index e6fd85b..05f7ed1 100644 --- a/src-tauri/src/commands/audio.rs +++ b/src-tauri/src/commands/audio.rs @@ -650,12 +650,12 @@ pub fn connect_to_vc( let mut next_frame_time = Instant::now(); while !shutdown.load(Ordering::Relaxed) { - let (is_muted, is_deaf) = { + let is_deaf = { let cfg = backend_config.lock().unwrap(); - (cfg.is_muted, cfg.is_deaf) + cfg.is_deaf }; - if is_muted || is_deaf { + if is_deaf { // Keep draining the UDP socket while deafened/muted so stale // packets don't accumulate in the OS buffer and get replayed // when we undeafen/unmute. Decrypting and discarding here