This commit is contained in:
aozhiwei 2024-06-07 14:30:26 +08:00
parent da5693a00f
commit 4b9a0250b2

2
app.js
View File

@ -212,7 +212,7 @@ async function lock(key) {
lockHash[key] = 1;
}
const oldTimes = lockHash[key];
while (lockHash[key] == oldTimes) {
while (lockHash[key] > oldTimes) {
await sleep(0.01);
}
}