From 4009986bc8bd1ccf0bdbd0b5135c1bde78839ed2 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sun, 17 Feb 2019 21:48:47 +0000 Subject: [PATCH] voice: destroy opus --- src/client/voice/dispatcher/StreamDispatcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/voice/dispatcher/StreamDispatcher.js b/src/client/voice/dispatcher/StreamDispatcher.js index 93c6df81ff01..102c5eab7fb1 100644 --- a/src/client/voice/dispatcher/StreamDispatcher.js +++ b/src/client/voice/dispatcher/StreamDispatcher.js @@ -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); }