🐛 Destroy stream for stop() method

This commit is contained in:
Androz2091 2020-07-31 12:06:26 +02:00
parent 4b133c7ec9
commit cfbd0ad572

View file

@ -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()