Skip to content

Commit

Permalink
fix the build on rbx
Browse files Browse the repository at this point in the history
rbx doesn't like a, b = if/else/end
  • Loading branch information
hone committed May 3, 2012
1 parent 0bb97b3 commit 2e67d04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/resque/worker.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 2e67d04

Please sign in to comment.