Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix the build on rbx

rbx doesn't like a, b = if/else/end
  • Loading branch information...
commit 2e67d04b72dfbfda8ce62aa47fb678097cc27206 1 parent 0bb97b3
@hone hone authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/resque/worker.rb
View
6 lib/resque/worker.rb
@@ -199,11 +199,11 @@ def reserve(interval = 5.0)
queues.map {|queue| Queue.new(queue, Resque.redis, Resque.coder) },
Resque.redis)
- queue, job = if interval < 1
+ if interval < 1
begin
- multi_queue.pop(true)
+ queue, job = multi_queue.pop(true)
rescue ThreadError
- nil
+ queue, job = nil
end
else
queue, job = multi_queue.poll(interval.to_i)
Please sign in to comment.
Something went wrong with that request. Please try again.