WIP: test #8

Draft
loewy wants to merge 61 commits from async-queue-shaka into master
Showing only changes of commit 20397d32e6 - Show all commits

View File

@@ -23,9 +23,11 @@ class ActionQueue {
private async runNext() { private async runNext() {
if (this.isRunning || this.queue.length === 0) { if (this.isRunning || this.queue.length === 0) {
console.log("Refusing to run in runNext", this.queue.length, this.isRunning);
return; return;
} }
this.isRunning = true; this.isRunning = true;
console.log("Running an action");
const action = this.queue.shift(); const action = this.queue.shift();
if (action) { if (action) {
try { try {