Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure setnx's result is an integer

  • Loading branch information...
commit 49dfd95a84c13471a47ff532036095b7532a2a25 1 parent ed52894
@mogstad mogstad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -47,7 +47,7 @@ RedisLockingWorker.prototype.acquire = function acquire() {
return;
}
- if (result) {
+ if (~~result) {
that.emit("acquired", false);
} else {
that.emit("locked");
Please sign in to comment.
Something went wrong with that request. Please try again.