mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 05:15:19 +00:00
fix: 音声が一切鳴らなくなる可能性がある (#12491)
* chore: 音声が一切鳴らなくなる可能性を軽減 https://github.com/misskey-dev/misskey/pull/12433#discussion_r1405774767 * chore: IIFEではなくPromise.prototype.finallyを使用するように
This commit is contained in:
parent
3b3b908ccd
commit
4e882414b2
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ export function play(operationType: OperationType) {
|
||||||
if (sound.type == null || !canPlay) return;
|
if (sound.type == null || !canPlay) return;
|
||||||
|
|
||||||
canPlay = false;
|
canPlay = false;
|
||||||
playFile(sound).then(() => {
|
playFile(sound).finally(() => {
|
||||||
// ごく短時間に音が重複しないように
|
// ごく短時間に音が重複しないように
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
canPlay = true;
|
canPlay = true;
|
||||||
|
|
Loading…
Reference in a new issue