Skip to content

Commit 77fc1cb

Browse files
committed
Added missing lock
1 parent 924dd09 commit 77fc1cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

peerconnection.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,6 +2880,9 @@ func (pc *PeerConnection) generateMatchedSDP(
28802880
}
28812881
}
28822882

2883+
pc.sctpTransport.lock.Lock()
2884+
defer pc.sctpTransport.lock.Unlock()
2885+
28832886
var bundleGroup *string
28842887
// If we are offering also include unmatched local transceivers
28852888
if includeUnmatched { //nolint:nestif

0 commit comments

Comments
 (0)