class Rack::Reloader

def call(env)

def call(env)
  if @cooldown and Time.now > @last + @cooldown
    if Thread.list.size > 1
      @reload_mutex.synchronize{ reload! }
    else
      reload!
    end
    @last = Time.now
  end
  @app.call(env)
end