mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
the admin audio player is a little more resilient against crashes (#90445)
## About The Pull Request if we try to play something and end up not being able to play it for whatever reason, we should not crash the whole chat ## Why It's Good For The Game less chat crash = more good ## Changelog 🆑 fix: admins trying to play certain songs would crash the chat, it no longer does /🆑 Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
@@ -67,7 +67,7 @@ export class AudioPlayer {
|
||||
});
|
||||
}
|
||||
|
||||
audio.play();
|
||||
audio.play()?.catch((error) => logger.log('playback error', error));
|
||||
|
||||
this.onPlaySubscribers.forEach((subscriber) => subscriber());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user