mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 07:14:12 +00:00
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 {
|
||||
logger.Errorw("could not write RTCP to participant", err,
|
||||
"participant", p.Identity())
|
||||
if len(fwdPkts) > 0 {
|
||||
if err := p.publisher.pc.WriteRTCP(fwdPkts); err != nil {
|
||||
logger.Errorw("could not write RTCP to participant", err,
|
||||
"participant", p.Identity())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Code generated by Wire. DO NOT EDIT.
|
||||
|
||||
//go:generate wire
|
||||
//go:generate go run github.com/google/wire/cmd/wire
|
||||
//+build !wireinject
|
||||
|
||||
package service
|
||||
|
||||
Reference in New Issue
Block a user