mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
voice: destroy opus
This commit is contained in:
@@ -117,7 +117,7 @@ class StreamDispatcher extends Writable {
|
|||||||
if (this.player.dispatcher === this) this.player.dispatcher = null;
|
if (this.player.dispatcher === this) this.player.dispatcher = null;
|
||||||
const { streams } = this;
|
const { streams } = this;
|
||||||
if (streams.broadcast) streams.broadcast.dispatchers.delete(this);
|
if (streams.broadcast) streams.broadcast.dispatchers.delete(this);
|
||||||
if (streams.opus) streams.opus.unpipe(this);
|
if (streams.opus) streams.opus.destroy();
|
||||||
if (streams.ffmpeg) streams.ffmpeg.destroy();
|
if (streams.ffmpeg) streams.ffmpeg.destroy();
|
||||||
super._destroy(err, cb);
|
super._destroy(err, cb);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user