Close published tracks on participant close (#2446)

This commit is contained in:
Raja Subramanian authored and GitHub committed 2024-02-05 13:41:41 +05:30
1 parent 7c16ca6a0c
commit b7147efb87
5 files changed
+52 -76

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapabili
b.bound = true
}
// Write adds an RTP Packet, out of order, new packet may be arrived later
// Write adds an RTP Packet, ordering is not guaranteed, newer packets may arrive later
func (b *Buffer) Write(pkt []byte) (n int, err error) {
b.Lock()
defer b.Unlock()