Permalink
Browse files

this isn't necessary any more. causing infinite loops in special cond…

…itions.
  • Loading branch information...
1 parent 835c002 commit 1c7275b94b2d34d8d960133c944b1ac1c3f193ce @felipecvo felipecvo committed Aug 2, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/cloud_crowd/models/work_unit.rb
@@ -55,8 +55,6 @@ def self.distribute_to_nodes
unit.cancel_reservation
end
work_units.push(unit)
- available_nodes.push(node)
- break if work_units.any? && available_nodes.one?
end
if work_units.any? && available_nodes.any?
filter = {:action => available_nodes.map {|node| node.actions }.flatten.uniq }

0 comments on commit 1c7275b

Please sign in to comment.