fix: (hopefully) scope the lock so it ends earlier

This commit is contained in:
2026-05-13 22:21:51 -04:00
parent 8416ef0609
commit a64e7190fd

View File

@@ -129,7 +129,7 @@ impl EventHandler for Handler {
tracing::debug!(?voice_tick);
for (ssrc, voice_data) in &voice_tick.speaking {
let user_id = self.known_ssrcs.lock().unwrap().get_left_for(ssrc).cloned();
let user_id = { self.known_ssrcs.lock().unwrap().get_left_for(ssrc).cloned() };
tracing::info!(?user_id);