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

View file

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