mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
voice: destroy opus
This commit is contained in:
parent
0564c5c777
commit
4009986bc8
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class StreamDispatcher extends Writable {
|
|||
if (this.player.dispatcher === this) this.player.dispatcher = null;
|
||||
const { streams } = 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();
|
||||
super._destroy(err, cb);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue