Permalink
Browse files

fix the build on rbx

rbx doesn't like a, b = if/else/end
  • Loading branch information...
1 parent 0bb97b3 commit 2e67d04b72dfbfda8ce62aa47fb678097cc27206 @hone hone committed May 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/resque/worker.rb
View
@@ -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)

0 comments on commit 2e67d04

Please sign in to comment.