don't send empty pkts
This commit is contained in:
@@ -961,9 +961,11 @@ func (p *ParticipantImpl) rtcpSendWorker() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := p.publisher.pc.WriteRTCP(fwdPkts); err != nil {
|
if len(fwdPkts) > 0 {
|
||||||
logger.Errorw("could not write RTCP to participant", err,
|
if err := p.publisher.pc.WriteRTCP(fwdPkts); err != nil {
|
||||||
"participant", p.Identity())
|
logger.Errorw("could not write RTCP to participant", err,
|
||||||
|
"participant", p.Identity())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by Wire. DO NOT EDIT.
|
// Code generated by Wire. DO NOT EDIT.
|
||||||
|
|
||||||
//go:generate wire
|
//go:generate go run github.com/google/wire/cmd/wire
|
||||||
//+build !wireinject
|
//+build !wireinject
|
||||||
|
|
||||||
package service
|
package service
|
||||||
|
|||||||
Reference in New Issue
Block a user