mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix some stuff
This commit is contained in:
@@ -132,7 +132,7 @@ class StreamDispatcher extends EventEmitter {
|
||||
_sendBuffer(buffer, sequence, timestamp) {
|
||||
let repeats = this.passes;
|
||||
const packet = this._createPacket(sequence, timestamp, this.player.opusEncoder.encode(buffer));
|
||||
while (repeats--) this.player.voiceConnection.sockets.udp.send(packet);
|
||||
while (repeats--) this.player.voiceConnection.sockets.udp.send(packet).catch(e => console.log('so uhhh', e));
|
||||
}
|
||||
|
||||
_createPacket(sequence, timestamp, buffer) {
|
||||
|
||||
Reference in New Issue
Block a user