lib/httpx/timers.rb in httpx-0.20.5 vs lib/httpx/timers.rb in httpx-0.21.0

- old
+ new

@@ -35,12 +35,15 @@ return if @intervals.empty? || !@next_interval_at elapsed_time = Utils.elapsed_time(@next_interval_at) @intervals.delete_if { |interval| interval.elapse(elapsed_time) <= 0 } + + @next_interval_at = nil if @intervals.empty? end def cancel + @next_interval_at = nil @intervals.clear end class Interval include Comparable