Skip to content

Commit

Permalink
fix: lock use read
Browse files Browse the repository at this point in the history
  • Loading branch information
hongcha98 committed Dec 18, 2023
1 parent 052c238 commit 8456b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forward/forward_internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ impl PeerForwardInternal {
.find(|p| p.get_key() == key)
.cloned();
if let Some(peer) = peer {
let anchor_track_forward_map = self.anchor_track_forward_map.write().await;
let anchor_track_forward_map = self.anchor_track_forward_map.read().await;
for (track_remote, track_forward) in anchor_track_forward_map.iter() {
if track_remote.0.rid() == rid && track_remote.0.kind() == RTPCodecType::Video {
for (track_remote_original, track_forward_original) in
Expand Down

0 comments on commit 8456b97

Please sign in to comment.