lib/SimControl/controller.rb in SimControl-0.1.8 vs lib/SimControl/controller.rb in SimControl-0.1.9

- old
+ new

@@ -31,13 +31,12 @@ threads = [] scenarios_per_core.each do |scenario| threads << Thread.new do current_simulation.simulate(scenario, seeds) end - - threads.each do |thread| - thread.join - end + end + threads.each do |thread| + thread.join end end end def repetitions(number_of_repetitions)