Permalink
Browse files

make new worker return worker key now

  • Loading branch information...
1 parent ca7d4cb commit 9031b8ba760722a5795764ea42fe0cb7e7f5cb1d @gnufied committed Jul 19, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/backgroundrb/bdrb_cluster_connection.rb
@@ -135,6 +135,7 @@ def new_worker(options = {})
succeeded = true
rescue BdrbConnError; end
end
+ return options[:worker_key]
raise NoServerAvailable.new("No BackgrounDRb server is found running") unless succeeded
end

2 comments on commit 9031b8b

NoServerAvailable is never raised then?
I think the last two lines should be swapped.

Owner

gnufied replied Jul 21, 2008

Thats indeed true. I can’t believe i did that.

Please sign in to comment.