Skip to content

Commit

Permalink
fixup! Web Locks API initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Dec 7, 2019
1 parent 23d1d44 commit 6ac8282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Lock {
this.owner = true;
this.trying = false;
const lock = this.queue.shift();
return lock.callback(lock).then(() => {
return lock.callback(lock).finally(() => {
this.leave();
});
}
Expand Down

0 comments on commit 6ac8282

Please sign in to comment.