mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
probably would cause an error somewhere
This commit is contained in:
parent
65673197d4
commit
48452173ca
1 changed files with 1 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ class StreamDispatcher extends Writable {
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
|
if (this.player.dispatcher !== this) return;
|
||||||
const streams = this.player.streams;
|
const streams = this.player.streams;
|
||||||
if (streams.opus) streams.opus.unpipe(this);
|
if (streams.opus) streams.opus.unpipe(this);
|
||||||
if (streams.ffmpeg) streams.ffmpeg.destroy();
|
if (streams.ffmpeg) streams.ffmpeg.destroy();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue