fix webrtc example when webrtc disabled

This commit is contained in:
lc
2025-11-13 23:25:53 +08:00
parent c406111c66
commit 67ad83a2b2
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ impl WebRTCStream {
Self::get_remote_offer(remote_endpoint)?
};
let key = remote_offer.clone();
let mut key = remote_offer.clone();
let mut lock = SESSIONS.lock().await;
if let Some(cached_stream) = lock.get(&key) {
if !key.is_empty() {