Skip to content

Commit

Permalink
this isn't necessary any more. causing infinite loops in special cond…
Browse files Browse the repository at this point in the history
…itions.
  • Loading branch information
felipecvo committed Aug 2, 2010
1 parent 835c002 commit 1c7275b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/cloud_crowd/models/work_unit.rb
Expand Up @@ -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 }
Expand Down

0 comments on commit 1c7275b

Please sign in to comment.