Mathieu Duponchelle 2024-11-29 18:52:41 +01:00
parent f646504fce
commit 4720b575b6

View file

@ -2416,7 +2416,9 @@ impl BaseWebRTCSink {
let signaller = settings.signaller.clone(); let signaller = settings.signaller.clone();
drop(settings); drop(settings);
if let Some(session) = self.state.lock().unwrap().sessions.get(session_id).cloned() { let session = self.state.lock().unwrap().sessions.get(session_id).cloned();
if let Some(session) = session {
let mut session = session.0.lock().unwrap(); let mut session = session.0.lock().unwrap();
let sdp = answer.sdp(); let sdp = answer.sdp();