Continue to next packet if received broken packet (#1260)

Broken packet should be ignored and continue to next packet.
This goroutine should not exit until close.
This commit is contained in:
ozraru 2022-10-24 07:44:08 +09:00 committed by GitHub
parent 86539504d9
commit 0c2b0eccf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -835,7 +835,7 @@ func (v *VoiceConnection) opusReceiver(udpConn *net.UDPConn, close <-chan struct
if opus, ok := secretbox.Open(nil, recvbuf[12:rlen], &nonce, &v.op4.SecretKey); ok {
p.Opus = opus
} else {
return
continue
}
// extension bit set, and not a RTCP packet