Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 0c2b0ec

Browse files
authored
Continue to next packet if received broken packet (bwmarrin#1260)
Broken packet should be ignored and continue to next packet. This goroutine should not exit until close.
1 parent 8653950 commit 0c2b0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

voice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ func (v *VoiceConnection) opusReceiver(udpConn *net.UDPConn, close <-chan struct
835835
if opus, ok := secretbox.Open(nil, recvbuf[12:rlen], &nonce, &v.op4.SecretKey); ok {
836836
p.Opus = opus
837837
} else {
838-
return
838+
continue
839839
}
840840

841841
// extension bit set, and not a RTCP packet

0 commit comments

Comments
 (0)