nil checks

This commit is contained in:
David Colburn
2021-06-21 15:08:49 -07:00
parent b17731506e
commit e4a460f30b
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -953,9 +953,11 @@ func (p *ParticipantImpl) rtcpSendWorker() {
throttlePkts := []rtcp.Packet{pkt}
p.rtcpThrottle.add(mediaSSRC, func() {
if err := p.publisher.pc.WriteRTCP(throttlePkts); err != nil {
logger.Errorw("could not write RTCP to participant", err,
"participant", p.Identity())
if p.publisher != nil && p.publisher.pc != nil {
if err := p.publisher.pc.WriteRTCP(throttlePkts); err != nil {
logger.Errorw("could not write RTCP to participant", err,
"participant", p.Identity())
}
}
})
}
+1 -1
View File
@@ -1,3 +1,3 @@
package version
const Version = "0.9.15-SNAPSHOT"
const Version = "0.9.14-SNAPSHOT"