Skip to content

Commit 610e6ca

Browse files
committed
Fix: add mutex context
1 parent a36d585 commit 610e6ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JavaScript/9-web-locks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const locks = {
7676
locks.resources.set(resourceName, lock);
7777
} else if (kind === 'leave') {
7878
for (const mutex of locks.resources) {
79-
if (mutex.trying) tryEnter();
79+
if (mutex.trying) mutex.tryEnter();
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)