client: avoid sending/receiving invalid packet when reading with multicast

This commit is contained in:
aler9
2022-07-05 22:54:40 +02:00
parent 18005a9cde
commit fb39087150
4 changed files with 12 additions and 18 deletions

View File

@@ -347,7 +347,7 @@ func TestServerRead(t *testing.T) {
}, nil
},
onPacketRTCP: func(ctx *ServerHandlerOnPacketRTCPCtx) {
// skip multicast loopback
// ignore multicast loopback
if transport == "multicast" && atomic.AddUint64(&counter, 1) <= 1 {
return
}