Skip to content

Commit cbe9107

Browse files
committed
Simplify code
Signed-off-by: Šimon Brandner <[email protected]>
1 parent f8953ce commit cbe9107

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/subscriber.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ func (s *Subscriber) forwardRTCP() {
144144
}
145145
}
146146

147-
if len(packetsToForward) < 1 {
148-
continue
147+
if len(packetsToForward) != 0 {
148+
s.publisher.WriteRTCP(packetsToForward)
149149
}
150-
151-
s.publisher.WriteRTCP(packetsToForward)
152150
}
153151
}

0 commit comments

Comments
 (0)