From cfbd0ad572ba42cb9e9e6faf1b65d191a80ab1b9 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Fri, 31 Jul 2020 12:06:26 +0200 Subject: [PATCH] :bug: Destroy stream for stop() method --- src/Player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.js b/src/Player.js index 82b1203..a4542f0 100644 --- a/src/Player.js +++ b/src/Player.js @@ -386,6 +386,7 @@ class Player { // Stop the dispatcher queue.stopped = true queue.tracks = [] + if (queue.stream) queue.stream.destroy() queue.voiceConnection.dispatcher.end() // Resolve resolve()