Skip to content

Commit

Permalink
make new worker return worker key now
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Jul 19, 2008
1 parent ca7d4cb commit 9031b8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/backgroundrb/bdrb_cluster_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

2 comments on commit 9031b8b

@Roman2K
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@gnufied
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.