Skip to content

Commit 9917596

Browse files
committed
Fix typo
Signed-off-by: Šimon Brandner <[email protected]>
1 parent d67f879 commit 9917596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/publisher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (p *Publisher) WriteRTCP(packets []rtcp.Packet) {
156156
packetsToSend = append(packetsToSend, packet)
157157
}
158158

159-
if len(packetsToSend) != 1 {
159+
if len(packetsToSend) != 0 {
160160
if err := p.Call.PeerConnection.WriteRTCP(packetsToSend); err != nil {
161161
if !errors.Is(err, io.ErrClosedPipe) {
162162
p.logger.WithError(err).Warn("failed to write RTCP on track")

0 commit comments

Comments
 (0)