fix deadlock after "cut to note", closes #1030

This commit is contained in:
zadam
2020-05-19 22:58:08 +02:00
parent fa5d982a55
commit 58f4f5d1e6
7 changed files with 61 additions and 54 deletions

View File

@@ -82,6 +82,10 @@ export default class Component {
let release;
try {
if (this.mutex.isLocked()) {
console.debug("Mutex locked for", this.constructor.name);
}
release = await this.mutex.acquire();
await fun.call(this, data);
@@ -93,4 +97,4 @@ export default class Component {
}
}
}
}
}