fix(StreamDispatcher): forward error created by AudioPlayer.play()
This commit is contained in:
parent
6439590e28
commit
065e028717
1 changed files with 5 additions and 1 deletions
|
@ -193,7 +193,11 @@ class StreamDispatcher extends EventEmitter<VoiceEvents> {
|
|||
}
|
||||
}
|
||||
|
||||
this.audioPlayer.play(resource);
|
||||
try {
|
||||
this.audioPlayer.play(resource);
|
||||
} catch(e) {
|
||||
this.emit("error", e as AudioPlayerError);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue