mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +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() {
|
||||
if (this.player.dispatcher !== this) return;
|
||||
const streams = this.player.streams;
|
||||
if (streams.opus) streams.opus.unpipe(this);
|
||||
if (streams.ffmpeg) streams.ffmpeg.destroy();
|
||||
|
|
|
|||
Loading…
Reference in a new issue