mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
probably would cause an error somewhere
This commit is contained in:
@@ -102,6 +102,7 @@ class StreamDispatcher extends Writable {
|
||||
}
|
||||
|
||||
destroy() {
|
||||
if (this.player.dispatcher !== this) return;
|
||||
const streams = this.player.streams;
|
||||
if (streams.opus) streams.opus.unpipe(this);
|
||||
if (streams.ffmpeg) streams.ffmpeg.destroy();
|
||||
|
||||
Reference in New Issue
Block a user