voice: fix voice receive after enabling suffix and lite encryption modes

This commit is contained in:
Amish Shah
2018-06-13 20:43:18 +01:00
parent 14eadb3ce0
commit d69e906027
2 changed files with 17 additions and 5 deletions

View File

@@ -248,7 +248,7 @@ class StreamDispatcher extends Writable {
packetBuffer.writeUIntBE(this.player.voiceConnection.authentication.ssrc, 8, 4);
packetBuffer.copy(nonce, 0, 0, 12);
return Buffer.concat([packetBuffer, ...this._encrypt(buffer, sequence)]);
return Buffer.concat([packetBuffer, ...this._encrypt(buffer)]);
}
_sendPacket(packet) {