mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
don't process empty sets
This commit is contained in:
parent
de0ba9fb7c
commit
9f8289e433
1 changed files with 1 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue