forked from pothtonswer/discordmuffin
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:
parent
86539504d9
commit
0c2b0eccf4
1 changed files with 1 additions and 1 deletions
2
voice.go
2
voice.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue