Fix bug in speaker

This commit is contained in:
Talia 2021-10-19 18:28:57 +02:00
parent fbb9bea3c0
commit 649286dcdf
No known key found for this signature in database
GPG Key ID: AD727AD22802D0D6
1 changed files with 4 additions and 2 deletions

View File

@ -19,8 +19,10 @@ class Speaker {
} else {
if (!this.#scheduled.length) {
queueMicrotask(() => {
for (let callback of this.#callbacks) {
callback(...args)
for (let args of this.#scheduled) {
for (let callback of this.#callbacks) {
callback(...args)
}
}
this.#scheduled = []
})