mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
don't process empty sets
This commit is contained in:
@@ -327,6 +327,7 @@ class VoiceBroadcast extends EventEmitter {
|
||||
buffer = this.applyVolume(buffer);
|
||||
|
||||
for (const x of this._dispatchers.entries()) {
|
||||
if (x[1].size === 0) continue;
|
||||
const [volume, container] = x;
|
||||
const opusPacket = this.opusEncoder.encode(this.applyVolume(buffer, volume));
|
||||
for (const dispatcher of container.values()) {
|
||||
|
||||
Reference in New Issue
Block a user