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:
harry
2025-04-06 14:23:33 -06:00
committed by GitHub
co-authored by harryob
parent 981dc0bdf9
commit d6c191459e
+1 -1
View File
@@ -67,7 +67,7 @@ export class AudioPlayer {
});
}
audio.play();
audio.play()?.catch((error) => logger.log('playback error', error));
this.onPlaySubscribers.forEach((subscriber) => subscriber());
}