Skip to content

Commit

Permalink
fix 582: deadlock on addDatachannel (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrlandoCo authored Sep 9, 2021
1 parent 8e325c3 commit 0e3628e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sfu/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func (s *SessionLocal) AddDatachannel(owner string, dc *webrtc.DataChannel) {
s.mu.Lock()
for _, lbl := range s.fanOutDCs {
if label == lbl {
s.mu.Unlock()
return
}
}
Expand Down

0 comments on commit 0e3628e

Please sign in to comment.