Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from azuqua/kevin/develop
Browse files Browse the repository at this point in the history
fix dlm example to reference data.holder correctly on lock timeout
  • Loading branch information
kevinwilson541 committed May 27, 2017
2 parents 0b81f96 + e79f9bd commit 52ea16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gen_server/dlm/dlm.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class DLMServer extends GenServer {
}
var timeout = setTimeout(() => {
var lock = this._locks.get(data.id);
if (!lock || lock.holder() !== data.holder()) {
if (!lock || lock.holder() !== data.holder) {
return;
}
this._locks.delete(data.id);
Expand Down

0 comments on commit 52ea16a

Please sign in to comment.