fix: (hopefully) scope the lock so it ends earlier
This commit is contained in:
@@ -129,7 +129,7 @@ impl EventHandler for Handler {
|
|||||||
tracing::debug!(?voice_tick);
|
tracing::debug!(?voice_tick);
|
||||||
|
|
||||||
for (ssrc, voice_data) in &voice_tick.speaking {
|
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);
|
tracing::info!(?user_id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user