lib/curl/multi.rb in curb-0.9.10 vs lib/curl/multi.rb in curb-0.9.11

- old
+ new

@@ -142,19 +142,19 @@ m.add(easy) end max_connects.times do conf = urls_with_config.pop - add_free_handle.call conf, nil + add_free_handle.call(conf, nil) if conf break if urls_with_config.empty? end consume_free_handles = proc do # as we idle consume free handles if urls_with_config.size > 0 && free_handles.size > 0 easy = free_handles.pop conf = urls_with_config.pop - add_free_handle.call conf, easy + add_free_handle.call(conf, easy) if conf end end if urls_with_config.empty? m.perform