Skip to content

Commit

Permalink
Fix locked? method to use Redis exists command instead of exist, whic…
Browse files Browse the repository at this point in the history
…h doesn't appear to be implemented by Redis.
  • Loading branch information
Cody Fauser authored and defunkt committed Jul 9, 2010
1 parent 18c4598 commit b3f64b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/plugins/lock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def lock(*args)

# Convenience method, not used internally.
def locked?(*args)
Resque.redis.exist(lock(*args))
Resque.redis.exists(lock(*args))
end

# Where the magic happens.
Expand Down

0 comments on commit b3f64b9

Please sign in to comment.