Skip to content

Commit

Permalink
voice: destroy opus
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Feb 17, 2019
1 parent 0564c5c commit 4009986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/voice/dispatcher/StreamDispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4009986

Please sign in to comment.