From aa1b364a2e01b206c7ff9100b1564a3ad5bbc23f Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Thu, 25 Jun 2020 18:46:24 +0200 Subject: [PATCH] Merge --- src/Player.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 87e74c0..1d378a7 100644 --- a/src/Player.js +++ b/src/Player.js @@ -811,6 +811,8 @@ class Player { seek: currentStreamTime }) setTimeout(() => { + if (queue.stream) queue.stream.destroy() + queue.stream = newStream queue.voiceConnection.play(newStream, { type: 'opus' }) @@ -856,7 +858,6 @@ class Player { const nowPlaying = queue.playing = queue.repeatMode ? wasPlaying : queue.tracks.shift() // Reset lastSkipped state queue.lastSkipped = false - this._playYTDLStream(queue, false).then(() => { // Emit trackChanged event if (!firstPlay) {