🐛 Destroy stream for stop() method
This commit is contained in:
parent
4b133c7ec9
commit
cfbd0ad572
1 changed files with 1 additions and 0 deletions
|
@ -386,6 +386,7 @@ class Player {
|
||||||
// Stop the dispatcher
|
// Stop the dispatcher
|
||||||
queue.stopped = true
|
queue.stopped = true
|
||||||
queue.tracks = []
|
queue.tracks = []
|
||||||
|
if (queue.stream) queue.stream.destroy()
|
||||||
queue.voiceConnection.dispatcher.end()
|
queue.voiceConnection.dispatcher.end()
|
||||||
// Resolve
|
// Resolve
|
||||||
resolve()
|
resolve()
|
||||||
|
|
Loading…
Reference in a new issue