Skip to content

Commit 4009986

Browse files
committed
voice: destroy opus
1 parent 0564c5c commit 4009986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/voice/dispatcher/StreamDispatcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class StreamDispatcher extends Writable {
117117
if (this.player.dispatcher === this) this.player.dispatcher = null;
118118
const { streams } = this;
119119
if (streams.broadcast) streams.broadcast.dispatchers.delete(this);
120-
if (streams.opus) streams.opus.unpipe(this);
120+
if (streams.opus) streams.opus.destroy();
121121
if (streams.ffmpeg) streams.ffmpeg.destroy();
122122
super._destroy(err, cb);
123123
}

0 commit comments

Comments
 (0)