diff --git a/src/client/voice/dispatcher/StreamDispatcher.js b/src/client/voice/dispatcher/StreamDispatcher.js index 174b9012f..323616103 100644 --- a/src/client/voice/dispatcher/StreamDispatcher.js +++ b/src/client/voice/dispatcher/StreamDispatcher.js @@ -103,10 +103,11 @@ class StreamDispatcher extends Writable { destroy() { if (this.player.dispatcher !== this) return; + this.player.dispatcher = null; const streams = this.player.streams; + this.end(); if (streams.opus) streams.opus.unpipe(this); if (streams.ffmpeg) streams.ffmpeg.destroy(); - this.end(); } }