Skip to content

Commit

Permalink
Fix set bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Mar 31, 2014
1 parent 560dd83 commit 4e2e1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/locky.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Locky.prototype.lock = function lock(opts, callback) {
this.redis[method](key, locker, setDone.bind(this));

function setDone(err, res) {
success = res === 1;
success = res === 1 || res === 'OK';

if (err !== null) return hadError.call(this, err);

Expand Down

0 comments on commit 4e2e1f7

Please sign in to comment.