# File lib/Dnsruby/event_machine_interface.rb, line 19 def EventMachineInterface::process_timers # Go through list of timers now = Time.now @@timer_keys_sorted.each do |timeout| if (timeout > now) break end c, proc = @@timer_procs[timeout] proc.call @@timer_procs.delete(timeout) @@timer_keys_sorted.delete(timeout) end if (!@@outstanding_sends.empty?) EventMachine::Timer.new(TIMER_PERIOD) {process_timers} end end