🥅 Catch stream errors
This commit is contained in:
parent
867092f4b7
commit
4a75dae262
1 changed files with 2 additions and 0 deletions
|
@ -1120,6 +1120,8 @@ class Player extends EventEmitter {
|
|||
})
|
||||
}
|
||||
|
||||
newStream.on('error', (error) => this.emit('error', error, queue.firstMessage))
|
||||
|
||||
setTimeout(() => {
|
||||
if (queue.stream) queue.stream.destroy()
|
||||
queue.stream = newStream
|
||||
|
|
Loading…
Reference in a new issue